-
- pwd = decryptor.decrypt(encPwd);
-
- if ( wPwd ) {
- return identity + ":" + pwd;
- } else {
- return identity;
- }
-
-
- }
-
-
- public AafService(ServiceType t ) {
- DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig();
- aafURL = p.getProperty( "aaf.URL", "https://authentication.domain.netset.com:8100/proxy/");
- initAafService( t );
- }
- public AafService( ServiceType t, String url ) {
- aafURL = url;
- initAafService( t );
- }
-
- private void initAafService( ServiceType t ) {
- DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig();
- useAAF= "true".equalsIgnoreCase(p.getProperty("UseAAF", "false"));
- logger.info( "AafService initAafService: useAAF=" + useAAF);
-
- ctype = t;
- aaf = new AafConnection( getCred( true ) );
- }
-
- public int addPerm(DmaapPerm perm) {
- logger.info( "entry: addPerm() " );
- return doPost( perm, "authz/perm", 201);
- }
- public int addGrant(DmaapGrant grant ) {
- logger.info( "entry: addGrant() " );
- return doPost( grant, "authz/role/perm", 201 );
- }
- public int addUserRole( AafUserRole ur ) {
- logger.info( "entry: addUserRole() " );
- return doPost( ur, "authz/userRole", 201 );
- }