Package dev.relism.flash.ext.security
Interface Principal
public interface Principal
Who an
AuthenticationMechanism proved the caller to be. Each mechanism has its own type;
SecurityIdentity.principal(Class) reads it back.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanhasAudience(String audience) Whether the credential was issued foraudience(RFC 8707).default booleanWhether the credential grantsscope.default StringWhere signing out sends the browser;nullfor the application root.name()Unique within the mechanism that produced it.
-
Method Details
-
name
String name()Unique within the mechanism that produced it. -
hasScope
Whether the credential grantsscope. One that carries no scopes grants every scope. -
hasAudience
Whether the credential was issued foraudience(RFC 8707). One bound to no audience was. -
logoutUrl
Where signing out sends the browser;nullfor the application root.
-