private static Long oldModified = null;
private static AAFPolicyClient aafClient = null;
+ private PDPApiAuth(){
+ // Private Constructor
+ }
+
/*
* Set Property by reading the properties File.
*/
String resource) {
try{
String[] userNamePass = PolicyUtils.decodeBasicEncoding(clientEncoding);
- if(userNamePass==null){
+ if(userNamePass==null || userNamePass.length==0){
String usernameAndPassword = null;
byte[] decodedBytes = Base64.getDecoder().decode(clientEncoding);
usernameAndPassword = new String(decodedBytes, "UTF-8");
StringTokenizer tokenizer = new StringTokenizer(usernameAndPassword, ":");
String username = tokenizer.nextToken();
String password = tokenizer.nextToken();
- userNamePass= new String[]{username, password};
+ userNamePass= new String[]{username, password};
}
PolicyLogger.info("User " + userNamePass[0] + " is Accessing Policy Engine API.");
Boolean result = false;