Tabnine Logo
CredentialValidationResult.getCallerDn
Code IndexAdd Tabnine to your IDE (free)

How to use
getCallerDn
method
in
javax.security.enterprise.identitystore.CredentialValidationResult

Best Java code snippets using javax.security.enterprise.identitystore.CredentialValidationResult.getCallerDn (Showing top 4 results out of 315)

origin: javaee/security-soteria

@Override
public Set<String> getCallerGroups(CredentialValidationResult validationResult) {
  // Make sure caller has permission to invoke this method
  SecurityManager securityManager = System.getSecurityManager();
  if (securityManager != null) {
    securityManager.checkPermission(new IdentityStorePermission("getGroups"));
  }
  LdapContext searchContext = createSearchLdapContext();
  try {
    String callerDn = validationResult.getCallerDn();
    if (callerDn == null || callerDn.isEmpty()) {
      callerDn = getCallerDn(searchContext, validationResult.getCallerPrincipal().getName());
    }
    return retrieveGroupsForCallerDn(searchContext, callerDn);
  }
  finally {
    closeContext(searchContext);
  }
}
origin: org.glassfish.soteria/javax.security.enterprise

@Override
public Set<String> getCallerGroups(CredentialValidationResult validationResult) {
  // Make sure caller has permission to invoke this method
  SecurityManager securityManager = System.getSecurityManager();
  if (securityManager != null) {
    securityManager.checkPermission(new IdentityStorePermission("getGroups"));
  }
  LdapContext searchContext = createSearchLdapContext();
  try {
    String callerDn = validationResult.getCallerDn();
    if (callerDn == null || callerDn.isEmpty()) {
      callerDn = getCallerDn(searchContext, validationResult.getCallerPrincipal().getName());
    }
    return retrieveGroupsForCallerDn(searchContext, callerDn);
  }
  finally {
    closeContext(searchContext);
  }
}
origin: javaee/security-soteria

validationResult.getIdentityStoreId(),
validationResult.getCallerPrincipal(),
validationResult.getCallerDn(),
validationResult.getCallerUniqueId(),
groups);
origin: org.glassfish.soteria/javax.security.enterprise

validationResult.getIdentityStoreId(),
validationResult.getCallerPrincipal(),
validationResult.getCallerDn(),
validationResult.getCallerUniqueId(),
groups);
javax.security.enterprise.identitystoreCredentialValidationResultgetCallerDn

Javadoc

Return the CallerPrincipal for the validated credential.

Popular methods of CredentialValidationResult

  • <init>
    Private constructor.
  • getCallerGroups
    Determines the set of groups that the specified Caller is in, based on the associated identity store
  • getCallerPrincipal
    Return the CallerPrincipal for the validated credential.
  • getStatus
    Determines the validation status.
  • getCallerUniqueId
    Return a string that uniquely identifies this caller within the identity store (since the Principal
  • getIdentityStoreId
    Return the unique ID of the identity store used to validate the credentials.

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Vim 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