Tabnine Logo
AttributeStatement.getSubject
Code IndexAdd Tabnine to your IDE (free)

How to use
getSubject
method
in
org.opensaml.saml.saml1.core.AttributeStatement

Best Java code snippets using org.opensaml.saml.saml1.core.AttributeStatement.getSubject (Showing top 6 results out of 315)

origin: apache/cxf

private static org.opensaml.saml.saml1.core.Subject getSaml1Subject(SamlAssertionWrapper assertionW) {
  for (Statement stmt : assertionW.getSaml1().getStatements()) {
    org.opensaml.saml.saml1.core.Subject samlSubject = null;
    if (stmt instanceof AttributeStatement) {
      AttributeStatement attrStmt = (AttributeStatement) stmt;
      samlSubject = attrStmt.getSubject();
    } else if (stmt instanceof AuthenticationStatement) {
      AuthenticationStatement authStmt = (AuthenticationStatement) stmt;
      samlSubject = authStmt.getSubject();
    } else {
      AuthorizationDecisionStatement authzStmt =
        (AuthorizationDecisionStatement)stmt;
      samlSubject = authzStmt.getSubject();
    }
    if (samlSubject != null) {
      return samlSubject;
    }
  }
  return null;
}
origin: org.apache.cxf/cxf-rt-rs-security-xml

private static org.opensaml.saml.saml1.core.Subject getSaml1Subject(SamlAssertionWrapper assertionW) {
  for (Statement stmt : assertionW.getSaml1().getStatements()) {
    org.opensaml.saml.saml1.core.Subject samlSubject = null;
    if (stmt instanceof AttributeStatement) {
      AttributeStatement attrStmt = (AttributeStatement) stmt;
      samlSubject = attrStmt.getSubject();
    } else if (stmt instanceof AuthenticationStatement) {
      AuthenticationStatement authStmt = (AuthenticationStatement) stmt;
      samlSubject = authStmt.getSubject();
    } else {
      AuthorizationDecisionStatement authzStmt =
        (AuthorizationDecisionStatement)stmt;
      samlSubject = authzStmt.getSubject();
    }
    if (samlSubject != null) {
      return samlSubject;
    }
  }
  return null;
}
origin: net.shibboleth.idp/idp-saml-impl

if (statement.getSubject() != null && statement.getSubject().getNameIdentifier() != null) {
  return statement.getSubject().getNameIdentifier().getFormat();
origin: net.shibboleth.idp/idp-saml-impl

if (statement.getSubject() != null && statement.getSubject().getNameIdentifier() != null) {
  return statement.getSubject().getNameIdentifier().getValue();
origin: org.apache.wss4j/wss4j-ws-security-common

if (stmt instanceof AttributeStatement) {
  AttributeStatement attrStmt = (AttributeStatement) stmt;
  samlSubject = attrStmt.getSubject();
} else if (stmt instanceof AuthenticationStatement) {
  AuthenticationStatement authStmt = (AuthenticationStatement) stmt;
origin: org.apache.wss4j/wss4j-ws-security-common

  org.opensaml.saml.saml1.core.AttributeStatement attrStmt =
    (org.opensaml.saml.saml1.core.AttributeStatement) stmt;
  samlSubject = attrStmt.getSubject();
} else if (stmt instanceof org.opensaml.saml.saml1.core.AuthenticationStatement) {
  org.opensaml.saml.saml1.core.AuthenticationStatement authStmt =
org.opensaml.saml.saml1.coreAttributeStatementgetSubject

Popular methods of AttributeStatement

  • getAttributes
    Get all the subsiduary Attribute elements.
  • setSubject
  • getElementQName

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Permission (java.security)
    Legacy security code; do not use.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Reference (javax.naming)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now