/** * Method getSubjectName returns the subjectName of this SubjectBean object. * * @return the subjectName (type String) of this SubjectBean object. */ public String getSubjectName() { return nameID.getNameValue(); }
/** * Method getSubjectNameQualifier returns the subjectNameQualifier of this SubjectBean object. * * @return the subjectNameQualifier (type String) of this SubjectBean object. */ public String getSubjectNameQualifier() { return nameID.getNameQualifier(); }
/** * Method setSubjectNameQualifier sets the subjectNameQualifier of this SubjectBean object. * * @param subjectNameQualifier the subjectNameQualifier of this SubjectBean object. */ public void setSubjectNameQualifier(String subjectNameQualifier) { nameID.setNameQualifier(subjectNameQualifier); }
/** * Create a KeyInfoBean that contains an X.509 certificate or Public Key */ protected static KeyInfoBean createPublicKeyKeyInfo(X509Certificate certificate, PublicKey publicKey) { KeyInfoBean keyInfo = new KeyInfoBean(); if (certificate != null) { keyInfo.setCertificate(certificate); keyInfo.setCertIdentifer(CERT_IDENTIFIER.X509_CERT); } else if (publicKey != null) { keyInfo.setPublicKey(publicKey); keyInfo.setCertIdentifer(CERT_IDENTIFIER.KEY_VALUE); } return keyInfo; }
private AttributeBean createAttributeBean(AttributeKey attributeKey, List<Object> claimValues) { AttributeBean attributeBean = new AttributeBean(attributeKey.getSimpleName(), attributeKey.getQualifiedName(), claimValues); attributeBean.setNameFormat(attributeKey.getNameFormat()); return attributeBean; }
/** * Constructor NameIDBean creates a new NameIDBean instance. * * @param nameValue of type String * @param nameQualifier of type String */ public NameIDBean( String nameValue, String nameQualifier, String nameIDFormat ) { this.setNameValue(nameValue); this.setNameQualifier(nameQualifier); this.setNameIDFormat(nameIDFormat); }
/** * Constructor SubjectBean creates a new SubjectBean instance. * * @param subjectName of type String * @param subjectNameQualifier of type String * @param subjectConfirmationMethod of type String */ public SubjectBean( String subjectName, String subjectNameQualifier, String subjectConfirmationMethod ) { nameID.setNameValue(subjectName); nameID.setNameQualifier(subjectNameQualifier); this.subjectConfirmationMethod = subjectConfirmationMethod; }
@Override public int hashCode() { int result = subject != null ? subject.hashCode() : 0; result = 31 * result + (authenticationInstant != null ? authenticationInstant.hashCode() : 0); result = 31 * result + (sessionNotOnOrAfter != null ? sessionNotOnOrAfter.hashCode() : 0); result = 31 * result + (authenticationMethod != null ? authenticationMethod.hashCode() : 0); result = 31 * result + (subjectLocality != null ? subjectLocality.hashCode() : 0); result = 31 * result + (sessionIndex != null ? sessionIndex.hashCode() : 0); return result; } }
/** * Transform a DecisionType * * @param decision of type Decision * @return DecisionTypeEnumeration */ private static DecisionTypeEnumeration transformDecisionType( AuthDecisionStatementBean.Decision decision ) { DecisionTypeEnumeration decisionTypeEnum = DecisionTypeEnumeration.DENY; if (decision.equals(AuthDecisionStatementBean.Decision.PERMIT)) { decisionTypeEnum = DecisionTypeEnumeration.PERMIT; } else if (decision.equals(AuthDecisionStatementBean.Decision.INDETERMINATE)) { decisionTypeEnum = DecisionTypeEnumeration.INDETERMINATE; } return decisionTypeEnum; }
/** * Method getSubjectNameIDFormat returns the subjectNameIDFormat of this SubjectBean * object. * * @return the subjectNameIDFormat (type String) of this SubjectBean object. */ public String getSubjectNameIDFormat() { return nameID.getNameIDFormat(); }
/** * Method setSubjectNameIDFormat sets the subjectNameIDFormat of this SubjectBean * object. * * @param subjectNameIDFormat the subjectNameIDFormat of this SubjectBean object. */ public void setSubjectNameIDFormat(String subjectNameIDFormat) { nameID.setNameIDFormat(subjectNameIDFormat); }
public void setSubjectNameSPProvidedID(String subjectNameSPProvidedID) { nameID.setSPProvidedID(subjectNameSPProvidedID); }
/** * Method setSubjectName sets the subjectName of this SubjectBean object. * * @param subjectName the subjectName of this SubjectBean object. */ public void setSubjectName(String subjectName) { nameID.setNameValue(subjectName); }
public void setSubjectNameSPNameQualifier(String subjectNameSPNameQualifier) { nameID.setSPNameQualifier(subjectNameSPNameQualifier); }
public String getSubjectNameSPNameQualifier() { return nameID.getSPNameQualifier(); }
public String getSubjectNameSPProvidedID() { return nameID.getSPProvidedID(); }
@Override public int hashCode() { int result = subject != null ? subject.hashCode() : 0; result = 31 * result + (attributeBeans != null ? attributeBeans.hashCode() : 0); return result; } }
/** * Create a KeyInfoBean that contains an X.509 certificate or Public Key */ protected static KeyInfoBean createPublicKeyKeyInfo(X509Certificate certificate, PublicKey publicKey) { KeyInfoBean keyInfo = new KeyInfoBean(); if (certificate != null) { keyInfo.setCertificate(certificate); keyInfo.setCertIdentifer(CERT_IDENTIFIER.X509_CERT); } else if (publicKey != null) { keyInfo.setPublicKey(publicKey); keyInfo.setCertIdentifer(CERT_IDENTIFIER.KEY_VALUE); } return keyInfo; }
private AttributeBean createAttributeBean(AttributeKey attributeKey, List<Object> claimValues) { AttributeBean attributeBean = new AttributeBean(attributeKey.getSimpleName(), attributeKey.getQualifiedName(), claimValues); attributeBean.setNameFormat(attributeKey.getNameFormat()); return attributeBean; }
/** * Create a DecisionTypeEnumeration object * * @param decision of type Decision * @return a DecisionTypeEnumeration object */ private static DecisionTypeEnumeration transformDecisionType( AuthDecisionStatementBean.Decision decision ) { DecisionTypeEnumeration decisionTypeEnum = DecisionTypeEnumeration.DENY; if (decision.equals(AuthDecisionStatementBean.Decision.PERMIT)) { decisionTypeEnum = DecisionTypeEnumeration.PERMIT; } else if (decision.equals(AuthDecisionStatementBean.Decision.INDETERMINATE)) { decisionTypeEnum = DecisionTypeEnumeration.INDETERMINATE; } return decisionTypeEnum; }