@Override public String getMessage() { return exceptionCode + ": " + super.getMessage(); } }
private String getLevelOfClass(Object obj) { SecurityLevel sl = obj.getClass().getAnnotation(SecurityLevel.class); if (sl == null) { throw new PicketLinkException(); } return sl.value(); }
private String getLevelOfClass(Object obj) { SecurityLevel sl = obj.getClass().getAnnotation(SecurityLevel.class); if (sl == null) { throw new PicketLinkException(); } return sl.value(); }
protected String getCredentialLevel() { if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if (credentials == null) { throw new PicketLinkException(); } Object cred = credentials.getCredential(); if (cred == null) { throw new PicketLinkException(); } return getLevelOfClass(cred); }
protected String getCredentialLevel() { if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if (credentials == null) { throw new PicketLinkException(); } Object cred = credentials.getCredential(); if (cred == null) { throw new PicketLinkException(); } return getLevelOfClass(cred); }
protected String getCredentialLevel() { if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if (credentials == null) { throw new PicketLinkException(); } Object cred = credentials.getCredential(); if (cred == null) { throw new PicketLinkException(); } return getLevelOfClass(cred); }
private String getLevelOfClass(Object obj) { SecurityLevel sl = obj.getClass().getAnnotation(SecurityLevel.class); if (sl == null) { throw new PicketLinkException(); } return sl.value(); }
protected String resolveLevel(){ if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if(authenticatorInstance.isUnsatisfied()){ throw new PicketLinkException(); } SecurityLevel a = authenticatorInstance.get().getClass().getAnnotation(SecurityLevel.class); if (a == null) { throw new PicketLinkException(); } return a.value(); }
protected String resolveLevel(){ if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if(authenticatorInstance.isUnsatisfied()){ throw new PicketLinkException(); } SecurityLevel a = authenticatorInstance.get().getClass().getAnnotation(SecurityLevel.class); if (a == null) { throw new PicketLinkException(); } return a.value(); }
protected String resolveLevel(){ if(!identity.isLoggedIn()){ throw new PicketLinkException(); } if(authenticatorInstance.isUnsatisfied()){ throw new PicketLinkException(); } SecurityLevel a = authenticatorInstance.get().getClass().getAnnotation(SecurityLevel.class); if (a == null) { throw new PicketLinkException(); } return a.value(); }