Package io.confluent.crn
Interface CrnAuthority
public interface CrnAuthority
A CrnAuthority is responsible for translating between resources and CRNs.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true iff the two CRNs refer to the same resource(s)Return the canonical CRN for the given CRNcanonicalCrn(String crnString) Return the canonical CRN for the Stringname()The name of this Authority.
-
Method Details
-
name
String name()The name of this Authority. This name should be unique and consistent across all of the services controlled by this authority. It is recommended that this be the DNS name for the Metadata Service that controls authorization for these services. -
canonicalCrn
Return the canonical CRN for the String- Throws:
CrnSyntaxException- if there are misnamed elements in the scope
-
canonicalCrn
Return the canonical CRN for the given CRN- Throws:
CrnSyntaxException- if there are misnamed elements in the scope
-
areEquivalent
Return true iff the two CRNs refer to the same resource(s)- Throws:
CrnSyntaxException
-