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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • 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