Class SecurityInfo


  • public class SecurityInfo
    extends java.lang.Object
    Utility class for holding security requirement information.
    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityInfo​(java.lang.String description)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProtocol()  
      java.lang.String getRequiredValue​(java.lang.String key)
      Return the value corresponding to a key.
      java.util.Optional<java.lang.String> getValue​(java.lang.String key)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getProtocol

        public java.lang.String getProtocol()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public java.util.Optional<java.lang.String> getValue​(java.lang.String key)
      • getRequiredValue

        public java.lang.String getRequiredValue​(java.lang.String key)
                                          throws XrootdException
        Return the value corresponding to a key.
        Parameters:
        key - the item to extract
        Returns:
        the corresponding value
        Throws:
        XrootdException - if key is not defined