Class CPEUriName

java.lang.Object
gov.nist.secauto.cpe.naming.util.AbstractCPEName
gov.nist.secauto.cpe.naming.util.CPEUriName
All Implemented Interfaces:
CPEName

public class CPEUriName
extends AbstractCPEName
A concrete implementation of a URI unbound to a WellFormedName.
  • Constructor Summary

    Constructors 
    Constructor Description
    CPEUriName​(java.lang.String uri)
    Constructs a URI bound CPE name based on the provided URI string.
    CPEUriName​(java.net.URI uri)
    Constructs a URI bound CPE name based on the provided URI string.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()
    Gets the underlying WellFormedName as a CPE URI.

    Methods inherited from class gov.nist.secauto.cpe.naming.util.AbstractCPEName

    getWellFormedName, toFormattedString, toUri, toUriString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CPEUriName

      public CPEUriName​(java.lang.String uri) throws java.text.ParseException
      Constructs a URI bound CPE name based on the provided URI string.
      Parameters:
      uri - a CPE name bound to a URI
      Throws:
      java.text.ParseException - if the URI bound CPE name is not valid
    • CPEUriName

      public CPEUriName​(java.net.URI uri) throws java.text.ParseException
      Constructs a URI bound CPE name based on the provided URI string.
      Parameters:
      uri - a CPE name bound to a URI
      Throws:
      java.text.ParseException - if the URI bound CPE name is not valid
  • Method Details