Package com.yahoo.vespa.athenz.zpe
Class AuthorizationResult
- java.lang.Object
-
- com.yahoo.vespa.athenz.zpe.AuthorizationResult
-
public class AuthorizationResult extends java.lang.Object
The various types of access control results.- Author:
- bjorncs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorizationResult.Type
-
Constructor Summary
Constructors Constructor Description AuthorizationResult(AuthorizationResult.Type type)
AuthorizationResult(AuthorizationResult.Type type, AthenzRole matchedRole)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Optional<AthenzRole>
matchedRole()
java.lang.String
toString()
AuthorizationResult.Type
type()
-
-
-
Constructor Detail
-
AuthorizationResult
public AuthorizationResult(AuthorizationResult.Type type)
-
AuthorizationResult
public AuthorizationResult(AuthorizationResult.Type type, AthenzRole matchedRole)
-
-
Method Detail
-
type
public AuthorizationResult.Type type()
-
matchedRole
public java.util.Optional<AthenzRole> matchedRole()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-