Class PolicyParser.PrincipalEntry
java.lang.Object
net.adoptopenjdk.icedteaweb.client.policyeditor.PolicyParser.PrincipalEntry
- All Implemented Interfaces:
Principal
- Enclosing class:
PolicyParser
Principal info (class and name) in a grant entry
- Since:
- 1.2 Copy of OpenJDK 21 sun.security.provider.PolicyParser (removed in JDK 24), openjdk/jdk21u bb6b279495ceff8442dbd0225756b92d466d5309, minus property expansion and debug output.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrincipalEntry(String principalClass, String principalName) A PrincipalEntry consists of the Principal class and Principal name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest for equality between the specified object and this object.getDisplayName(boolean addQuote) getName()inthashCode()Return a hashcode for this PrincipalEntry.(package private) boolean(package private) boolean(package private) booleantoString()voidwrite(PrintWriter out)
-
Field Details
-
Constructor Details
-
PrincipalEntry
A PrincipalEntry consists of the Principal class and Principal name.- Parameters:
principalClass- the Principal classprincipalName- the Principal name- Throws:
NullPointerException- if principalClass or principalName are null
-
-
Method Details
-
isWildcardName
boolean isWildcardName() -
isWildcardClass
boolean isWildcardClass() -
isReplaceName
boolean isReplaceName() -
getPrincipalClass
-
getPrincipalName
-
getDisplayClass
-
getDisplayName
-
getDisplayName
-
getName
-
toString
-
equals
Test for equality between the specified object and this object. Two PrincipalEntries are equal if their class and name values are equal. -
hashCode
-
write
-