public AuthorizationCode(String code,String resourceOwnerId,String clientId,String redirectUri,Set<String> scope,String claims,long expiryTime,String nonce,String realm,String authModules,String acr,String ssoTokenId,String codeChallenge,String codeChallengeMethod,String authGrantId,String auditId){
  super(new HashMap<String,Object>());
  setStringProperty(ID,code);
  setStringProperty(USERNAME,resourceOwnerId);
  setStringProperty(CLIENT_ID,clientId);
  setStringProperty(REDIRECT_URI,redirectUri);
  setStringProperty(EXPIRE_TIME,String.valueOf(expiryTime));
  put(SCOPE,newList(scope));
  setStringProperty(TOKEN_TYPE,"Bearer");
  setStringProperty(TOKEN_NAME,OAUTH_CODE_TYPE);
  setStringProperty(NONCE,nonce);
  setStringProperty(AUTH_MODULES,authModules);
  setStringProperty(ACR,acr);
  setStringProperty(CODE_CHALLENGE,codeChallenge);
  setStringProperty(CODE_CHALLENGE_METHOD,codeChallengeMethod);
  setStringProperty(AUTH_GRANT_ID,authGrantId);
  setStringProperty(REALM,realm == null || realm.isEmpty() ? "/" : realm);
  setStringProperty(SSO_TOKEN_ID,ssoTokenId);
  put(CLAIMS,CollectionUtils.asList(claims));
  setStringProperty(AUDIT_TRACKING_ID,auditId);
}

public AuthorizationCode ( String code , String resourceOwnerId , String clientId , String redirectUri , Set < String > scope , String claims , long expiryTime , String nonce , String realm , String authModules , String acr , String ssoTokenId , String codeChallenge , String codeChallengeMethod , String authGrantId , String auditId ) { super ( new HashMap < String , Object > ( ) ) ; setStringProperty ( ID , code ) ; setStringProperty ( USERNAME , resourceOwnerId ) ; setStringProperty ( CLIENT_ID , clientId ) ; setStringProperty ( REDIRECT_URI , redirectUri ) ; setStringProperty ( EXPIRE_TIME , String . valueOf ( expiryTime ) ) ; put ( SCOPE , newList ( scope ) ) ; setStringProperty ( TOKEN_TYPE , "Bearer" ) ; setStringProperty ( TOKEN_NAME , OAUTH_CODE_TYPE ) ; setStringProperty ( NONCE , nonce ) ; setStringProperty ( AUTH_MODULES , authModules ) ; setStringProperty ( ACR , acr ) ; setStringProperty ( CODE_CHALLENGE , codeChallenge ) ; setStringProperty ( CODE_CHALLENGE_METHOD , codeChallengeMethod ) ; setStringProperty ( AUTH_GRANT_ID , authGrantId ) ; setStringProperty ( REALM , realm == null || realm . isEmpty ( ) ? "/" : realm ) ; setStringProperty ( SSO_TOKEN_ID , ssoTokenId ) ; put ( CLAIMS , CollectionUtils . asList ( claims ) ) ; setStringProperty ( AUDIT_TRACKING_ID , auditId ) ; }
constructs a new authorizationcode .
