Codota Logo
SimpleUserPrincipal.setLoginName
Code IndexAdd Codota to your IDE (free)

How to use
setLoginName
method
in
leap.core.security.SimpleUserPrincipal

Best Java code snippets using leap.core.security.SimpleUserPrincipal.setLoginName (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.leapframework/leap-oauth2-webapp

@Override
public IdToken verifyIdToken(OAuth2Params params, String token) throws TokenVerifyException {
  MacSigner signer = new MacSigner(config.getClientSecret());
  Map<String, Object> claims = signer.verify(token);
  SimpleIdToken idToken = new SimpleIdToken(token);
  idToken.setClientId((String)claims.get(JWT.CLAIM_AUDIENCE));
  idToken.setUserId((String)claims.get(JWT.CLAIM_SUBJECT));
  SimpleUserPrincipal user = new SimpleUserPrincipal();
  user.setId(idToken.getUserId());
  user.setName((String)claims.remove("name"));
  user.setLoginName((String)claims.remove("login_name"));
  user.setProperties(claims);
  idToken.setUserInfo(user);
  idToken.setClaims(claims);
  return idToken;
}
origin: org.leapframework/leap-oauth2-webapp

protected UserPrincipal newUserInfo(JsonObject json) {
  SimpleUserPrincipal userInfo = new SimpleUserPrincipal();
  userInfo.setId(json.getString("sub"));
  userInfo.setName(json.getString("name"));
  userInfo.setLoginName(json.getString("login_name"));
  userInfo.setProperties(json.asMap());
  return userInfo;
}
origin: org.leapframework/leap-websecurity

SimpleUserPrincipal principal = new SimpleUserPrincipal();
principal.setId(jti);
principal.setLoginName(username);
principal.setName(username);
principal.setProperties(claims);
leap.core.securitySimpleUserPrincipalsetLoginName

Popular methods of SimpleUserPrincipal

  • <init>
  • setId
  • setName
  • setProperties

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now