- cacert - Variable in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- CaHelper - Class in com.peterphi.std.crypto.keygen
-
- CaHelper() - Constructor for class com.peterphi.std.crypto.keygen.CaHelper
-
- call(T) - Method in class com.peterphi.std.threading.ParamInvokeable
-
Synchronously executes this Invokeable
- cancel(boolean) - Method in class com.peterphi.std.threading.SettableFuture
-
- cancel() - Method in class com.peterphi.std.threading.SettableFuture
-
Cancels this Future
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.Inet4AddressConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.Inet6AddressConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.InetAddressConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.MapStringStringConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.MultiOSFileConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.StringComparableVersionConverter
-
- canConvert(Class) - Method in class com.peterphi.std.xstream.serialisers.URIConverter
-
- canonicalise() - Method in class com.peterphi.std.types.InetSubnet
-
Produces a canonical representation of this subnet; the canonical form has the network ip address properly masked (eg.
- caseSensitive - Variable in class com.peterphi.std.io.PropertyFile
-
- cat(String) - Static method in class com.peterphi.std.io.FileHelper
-
- cat(InputStream) - Static method in class com.peterphi.std.io.FileHelper
-
- cat(URL) - Static method in class com.peterphi.std.io.FileHelper
-
- cat(Reader) - Static method in class com.peterphi.std.io.FileHelper
-
- cat(File) - Static method in class com.peterphi.std.io.FileHelper
-
- cat(Reader, int) - Static method in class com.peterphi.std.io.FileHelper
-
- CertificateAuthority - Class in com.peterphi.std.crypto.keygen.ca
-
- CertificateAuthority(File, char[], File, BigInteger, String) - Constructor for class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- CertificateChainUtil - Class in com.peterphi.std.crypto
-
Utility class which helps manage certificate chains
- channel - Variable in class com.peterphi.std.io.FileHelper.LockRecord
-
- CharSequenceReader - Class in com.peterphi.std.io
-
A Reader whose source is a CharSequence (such as a StringBuilder or a StringBuffer).
This is slightly faster than new StringReader(str.toString()) although it creates a greater number of (small) garbage
objects
Implementation based on that of StringReader
- CharSequenceReader(CharSequence) - Constructor for class com.peterphi.std.io.CharSequenceReader
-
- checkpw(String, String) - Static method in class com.peterphi.std.crypto.BCrypt
-
Check that a plaintext password matches a previously hashed one
- chmod(File, int) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions using octal
- chmod(String, File, int) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions using octal
- chmod(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions on f with
the permissions on copyOf
- chmod(String, File, File) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions on f with
the permissions on copyOf
- chmod(String, File, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
- chmod(File, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
- chmod(File, Set<ChmodBit>, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
- chmod(String, File, Set<ChmodBit>, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
-
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
- ChmodBit - Enum in com.peterphi.std.io
-
- chown(File, String, String, boolean) - Static method in class com.peterphi.std.io.FileHelper
-
- CHUNKSIZE - Static variable in class com.peterphi.std.io.StreamUtil
-
- clear() - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- clear() - Method in class com.peterphi.std.io.PropertyFile
-
- clone(T) - Method in class com.peterphi.std.xstream.XSHelper
-
Performs a deep clone using serialisation; this is equivalent to (MyType) this.deserialise(this.serialise(obj))
Be careful when using this to clone classes you do not own: they may refer to complex/system datastructures with unintended
consequences
- clone(T) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Performs a deep clone.
- close() - Method in class com.peterphi.std.io.CharSequenceReader
-
Closes the stream and releases any system resources associated with it.
- close() - Method in class com.peterphi.std.io.StringBuilderReader
-
Closes the stream and releases any system resources associated with it.
- cmd - Variable in class com.peterphi.std.system.exec.BaseExeced
-
- cmd - Variable in class com.peterphi.std.system.exec.Exec
-
- cmp(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
-
- com.peterphi.std - package com.peterphi.std
-
- com.peterphi.std.annotation - package com.peterphi.std.annotation
-
- com.peterphi.std.auth.yubikey - package com.peterphi.std.auth.yubikey
-
- com.peterphi.std.crypto - package com.peterphi.std.crypto
-
- com.peterphi.std.crypto.digest - package com.peterphi.std.crypto.digest
-
- com.peterphi.std.crypto.digest.impl - package com.peterphi.std.crypto.digest.impl
-
- com.peterphi.std.crypto.keygen - package com.peterphi.std.crypto.keygen
-
- com.peterphi.std.crypto.keygen.ca - package com.peterphi.std.crypto.keygen.ca
-
- com.peterphi.std.crypto.keystore - package com.peterphi.std.crypto.keystore
-
- com.peterphi.std.crypto.openssl - package com.peterphi.std.crypto.openssl
-
- com.peterphi.std.crypto.signing - package com.peterphi.std.crypto.signing
-
- com.peterphi.std.io - package com.peterphi.std.io
-
- com.peterphi.std.io.filter - package com.peterphi.std.io.filter
-
- com.peterphi.std.io.nio - package com.peterphi.std.io.nio
-
- com.peterphi.std.io.properties - package com.peterphi.std.io.properties
-
- com.peterphi.std.net - package com.peterphi.std.net
-
- com.peterphi.std.system.exec - package com.peterphi.std.system.exec
-
- com.peterphi.std.threading - package com.peterphi.std.threading
-
- com.peterphi.std.types - package com.peterphi.std.types
-
- com.peterphi.std.util - package com.peterphi.std.util
-
- com.peterphi.std.util.jaxb - package com.peterphi.std.util.jaxb
-
- com.peterphi.std.util.jaxb.exception - package com.peterphi.std.util.jaxb.exception
-
- com.peterphi.std.xstream - package com.peterphi.std.xstream
-
- com.peterphi.std.xstream.serialisers - package com.peterphi.std.xstream.serialisers
-
- combinedOutput - Variable in class com.peterphi.std.system.exec.BaseExeced
-
- COMPARE - Static variable in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
The comparator to use when comparing algorithms ignoring their relative cryptographic security
- compare(Timecode, Timecode) - Method in class com.peterphi.std.types.TimecodeComparator
-
- COMPARE_PREFER_SECURE - Static variable in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
The comparator to use when comparing algorithms & preferring secure algorithms (will usually be the same as the default
comparator, but preferring algorithms marked cryptographically secure)
- CompareHelper - Class in com.peterphi.std.types
-
Makes the use of Java's ugly compareTo operation a little more readable
- CompareHelper() - Constructor for class com.peterphi.std.types.CompareHelper
-
- compareTo(Deadline) - Method in class com.peterphi.std.threading.Deadline
-
- compareTo(Timeout) - Method in class com.peterphi.std.threading.Timeout
-
- compareTo(Id) - Method in class com.peterphi.std.types.Id
-
Compares another Id to this id.
- compareTo(StorageSize) - Method in class com.peterphi.std.types.StorageSize
-
Performs a comparison based on the number of bits represented
Since this class has a natural ordering that is inconsistent with equals, this method may return 0 where
equals would not return 0 - since this compares based on bits but equals tests based on the
unit+amount
- compareTo(long, StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Performs a comparison based on the number of bits represented
Since this class has a natural ordering that is inconsistent with equals, this method may return 0 where
equals would not return 0 - since this compares based on bits but equals tests based on the
unit+amount
- compareTo(Version) - Method in class com.peterphi.std.types.Version
-
- complete() - Method in interface com.peterphi.std.io.ICopyProgressMonitor
-
- COMPSCI_BINARY - Static variable in enum com.peterphi.std.types.StorageUnit
-
- concat(Collection<? extends T>...) - Static method in class com.peterphi.std.util.ListUtility
-
Concatenates a number of Collections into a single List
- configure(File...) - Static method in class com.peterphi.std.util.Logging
-
- configure(String...) - Static method in class com.peterphi.std.util.Logging
-
- configureFiles(Iterable<File>) - Static method in class com.peterphi.std.util.Logging
-
Configures the logging environment to use the first available config file in the list, printing an error if none of the
files
are suitable
- configureNames(Iterable<String>) - Static method in class com.peterphi.std.util.Logging
-
- contains(String) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- contains(KeyPair) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- contains(Collection<T>, T) - Static method in class com.peterphi.std.util.ListUtility
-
- contains(String[], String) - Static method in class com.peterphi.std.util.ListUtility
-
- containsKey(String) - Method in class com.peterphi.std.io.PropertyFile
-
- convert(File, File, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS12ToPEM
-
- convert(File, char[], File, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS12ToPEM
-
- convert(File, char[], char[], File, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS12ToPEM
-
Converts a PKCS12 to a PEM using the Bouncy Castle PKCS12 drivers
- convert(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Convert this StorageSize to use the named unit
- convert(long, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
-
- convert(BigInteger, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
-
- convert(BigDecimal, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
-
- convert(Document) - Static method in class com.peterphi.std.util.JDOMUtils
-
Convert a JDOM Document to a DOM Document
- convert(Document) - Static method in class com.peterphi.std.util.JDOMUtils
-
Convert a DOM Document to a JDOM Document
- convert(Element) - Static method in class com.peterphi.std.util.JDOMUtils
-
Convert a JDOM Element to a DOM Element
- convert(Element) - Static method in class com.peterphi.std.util.JDOMUtils
-
Convert a DOM Element to a JDOM Element
- copy(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
- copy(InputStream, Writer) - Method in class com.peterphi.std.system.exec.BaseExeced
-
- couldWrite(File) - Static method in class com.peterphi.std.io.FileHelper
-
- crc32(File) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- crc32(InputStream) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- CRC32Digester - Class in com.peterphi.std.crypto.digest.impl
-
Produces CRC32 checksums (in hexidecimal) using the java.util.zip CRC32 class
- CRC32Digester() - Constructor for class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- create() - Static method in class com.peterphi.std.xstream.XSHelper
-
Creates a new instance of the XSHelper class, using the most efficient underlying implementations possible
- create(HierarchicalStreamDriver) - Static method in class com.peterphi.std.xstream.XSHelper
-
- create() - Static method in class com.peterphi.std.xstream.XStreamHelper
-
- createDocumentBuilder() - Static method in class com.peterphi.std.util.DOMUtils
-
Create a new (namespace-aware) DocumentBuilder
- createRequest(KeyPair, X500Principal) - Method in class com.peterphi.std.crypto.keygen.RSAGenerator
-
- createSimpleX509(String, String, KeyPair, int) - Static method in class com.peterphi.std.crypto.keygen.RSAGenerator
-
- createTempFile(String, String) - Static method in class com.peterphi.std.io.FileHelper
-
Creates a temporary file name
- Daemon - Class in com.peterphi.std.threading
-
Simplifies the creation of long-running daemon threads
- Daemon() - Constructor for class com.peterphi.std.threading.Daemon
-
- data - Variable in class com.peterphi.std.io.PropertyFile.Comment
-
- DCE - Static variable in class com.peterphi.std.crypto.DNReformatter
-
Synonym for ACTIVE_DIRECTORY (descending (CN last), slash-separated with a leading slash)
- Deadline - Class in com.peterphi.std.threading
-
Represents a deadline (some point in the future - generally, a time by which some operation should be completed)
- Deadline(Timeout) - Constructor for class com.peterphi.std.threading.Deadline
-
Constructs a new deadline based on adding timeout to the current time
If current time + timeout > Long.MAX_VALUE then Long.MAX_VALUE is used as the deadline
- Deadline(long) - Constructor for class com.peterphi.std.threading.Deadline
-
- Deadline(long, TimeUnit) - Constructor for class com.peterphi.std.threading.Deadline
-
Constructs a deadline using a given period of time
- Deadline(Calendar) - Constructor for class com.peterphi.std.threading.Deadline
-
- Deadline(Date) - Constructor for class com.peterphi.std.threading.Deadline
-
- DECIMAL_QUANTIFIERS - Static variable in enum com.peterphi.std.types.StorageUnit
-
The range of quantifiers for ISO decimal units (bytes to terabytes (ISO: B to TB))
- DECODE - Static variable in class com.peterphi.std.util.Base64
-
Specify decoding in first bit.
- decode(byte[]) - Static method in class com.peterphi.std.util.Base64
-
Low-level access to decoding ASCII characters in the form of a byte array.
- decode(byte[], int, int, int) - Static method in class com.peterphi.std.util.Base64
-
Low-level access to decoding ASCII characters in the form of a byte array.
- decode(String) - Static method in class com.peterphi.std.util.Base64
-
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
- decode(String, int) - Static method in class com.peterphi.std.util.Base64
-
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
- decodeFileToFile(String, String) - Static method in class com.peterphi.std.util.Base64
-
Reads infile and decodes it to outfile.
- decodeFromFile(String) - Static method in class com.peterphi.std.util.Base64
-
Convenience method for reading a base64-encoded file and decoding it.
- decodeToFile(String, String) - Static method in class com.peterphi.std.util.Base64
-
Convenience method for decoding data to a file.
- decodeToObject(String) - Static method in class com.peterphi.std.util.Base64
-
Attempts to decode Base64 data and deserialize a Java Object within.
- DEFAULT - Static variable in class com.peterphi.std.crypto.DNReformatter
-
The default style (descending (CN last), comma-separated
- delete(File) - Static method in class com.peterphi.std.io.FileHelper
-
Deletes a local file or directory from the filesystem
- deleteFile(String, KeyPair) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- DERUtil - Class in com.peterphi.std.crypto.keystore
-
- deserialise(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise a String of XML to an Object (or JAXBElement)
- deserialise(InputStream) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise a stream of XML to an Object (or JAXBElement)
- deserialise(Reader) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise a Reader of XML to an Object (or JAXBElement)
- deserialise(Class<T>, InputSource) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise an input and cast to a particular type
- deserialise(Class<T>, String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise and cast to a particular type
- deserialise(File) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise a File of XML to an Object (or JAXBElement)
- deserialise(InputSource) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- deserialise(Node) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Deserialise a DOM Node to an Object (or JAXBElement)
- deserialise(File) - Method in class com.peterphi.std.xstream.XSHelper
-
Deserialises an Object from a File.
- deserialise(String) - Method in class com.peterphi.std.xstream.XSHelper
-
Deserialises a String into an Object
- deserialise(InputStream) - Method in class com.peterphi.std.xstream.XSHelper
-
Deserialise an XML document from an InputStream into an Object
- deserialise(Reader) - Method in class com.peterphi.std.xstream.XSHelper
-
Deserialise an XML document from an InputStream into an Object
- deserialise(File) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Deserialises an Object from a File
- deserialise(String) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Uses the default XStream instance to deserialise an XML document into an Object
- deserialise(InputStream) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Deserialises an InputStream into an Object using the default XStream instance
- digest(File, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- digest(InputStream, String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- digest(InputStream, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- digest(byte[]) - Method in interface com.peterphi.std.crypto.digest.IDigester
-
Produces the digest of a byte array
- digest(File) - Method in interface com.peterphi.std.crypto.digest.IDigester
-
Produces the digest of a File
- digest(InputStream) - Method in interface com.peterphi.std.crypto.digest.IDigester
-
Produces the digest of an InputStream
- digest(ByteChannel) - Method in interface com.peterphi.std.crypto.digest.IDigester
-
Digests a ByteChannel; the performance of this method may possibly be higher (but it may also be slightly slower)
than that of the InputStream method
- digest(byte[]) - Method in class com.peterphi.std.crypto.digest.impl.AbstractDigester
-
- digest(File) - Method in class com.peterphi.std.crypto.digest.impl.AbstractDigester
-
- digest(InputStream) - Method in class com.peterphi.std.crypto.digest.impl.AbstractDigester
-
- digest(ByteChannel) - Method in class com.peterphi.std.crypto.digest.impl.AbstractDigester
-
- digest(byte[]) - Method in class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- digest(File) - Method in class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- digest(InputStream) - Method in class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- digest(ByteChannel) - Method in class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- digest(byte[]) - Method in class com.peterphi.std.crypto.digest.impl.LengthDigester
-
- digest(File) - Method in class com.peterphi.std.crypto.digest.impl.LengthDigester
-
- digest(InputStream) - Method in class com.peterphi.std.crypto.digest.impl.LengthDigester
-
- digest(ByteChannel) - Method in class com.peterphi.std.crypto.digest.impl.LengthDigester
-
- DigestAlgorithm - Enum in com.peterphi.std.crypto.digest
-
A number of different types of digest algorithm
- DigestHelper - Class in com.peterphi.std.crypto.digest
-
- DigestHelper() - Constructor for class com.peterphi.std.crypto.digest.DigestHelper
-
- Digests - Class in com.peterphi.std.crypto.digest
-
Represents a number of digests of some content
- Digests() - Constructor for class com.peterphi.std.crypto.digest.Digests
-
- DigestVerifier - Class in com.peterphi.std.crypto.digest.impl
-
Verifies a digest
- DigestVerifier(String, DigestAlgorithm) - Constructor for class com.peterphi.std.crypto.digest.impl.DigestVerifier
-
- DigestVerifier(String, IDigester) - Constructor for class com.peterphi.std.crypto.digest.impl.DigestVerifier
-
- DirectoryKeystore - Class in com.peterphi.std.crypto.keystore
-
- DirectoryKeystore(File) - Constructor for class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- dirty - Variable in class com.peterphi.std.io.PropertyFile
-
- disableGraph() - Method in class com.peterphi.std.xstream.XSHelper
-
- discard(InputStream) - Method in class com.peterphi.std.system.exec.BaseExeced
-
- discardOutput() - Method in class com.peterphi.std.system.exec.BaseExeced
-
Indicates that the output of this process should be discarded
- discardOutput() - Method in class com.peterphi.std.system.exec.Execed
-
- DNReformatter - Class in com.peterphi.std.crypto
-
Reformats a Distinguished Name into one of a variety of formats
- DNReformatter() - Constructor for class com.peterphi.std.crypto.DNReformatter
-
- DNReformatter(DERObjectIdentifier[]) - Constructor for class com.peterphi.std.crypto.DNReformatter
-
- DNReformatter(DERObjectIdentifier[], String) - Constructor for class com.peterphi.std.crypto.DNReformatter
-
- DNReformatter(DERObjectIdentifier[], String, String, String, String, String) - Constructor for class com.peterphi.std.crypto.DNReformatter
-
- DNReformatter(String[], String, String, String, String, String) - Constructor for class com.peterphi.std.crypto.DNReformatter
-
- DO_BREAK_LINES - Static variable in class com.peterphi.std.util.Base64
-
Do break lines when encoding.
- doBackgroundCopy(InputStream, OutputStream) - Static method in class com.peterphi.std.io.StreamUtil
-
- doBackgroundCopy(InputStream, OutputStream, ICopyProgressMonitor) - Static method in class com.peterphi.std.io.StreamUtil
-
- doBackgroundCopy(InputStream, OutputStream, ICopyProgressMonitor, boolean, boolean) - Static method in class com.peterphi.std.io.StreamUtil
-
- Doc - Annotation Type in com.peterphi.std.annotation
-
Documentation that can be read at runtime
- DOMUtils - Class in com.peterphi.std.util
-
- DUMMY_MONITOR - Static variable in class com.peterphi.std.io.StreamUtil
-
A monitor which does nothing
- ge(int) - Static method in class com.peterphi.std.types.CompareHelper
-
Evaluates the result of a.compareTo(b) and returns a >= b
- ge(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
-
a >= b
- ge(Timecode) - Method in class com.peterphi.std.types.Timecode
-
- ge(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
-
- generate(int) - Static method in class com.peterphi.std.crypto.keygen.RSAGenerator
-
- generateBytes(int) - Static method in class com.peterphi.std.util.HexHelper
-
Generates a number of random bytes which can then be manipulated and/or converted to hex
Uses a new instance of java.util.Random
- generateBytes(Random, int) - Static method in class com.peterphi.std.util.HexHelper
-
Generates a number of random bytes which can then be manipulated and/or converted to hex
- generateCA(String, BigInteger) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- generateCaCertificate(String, KeyPair, BigInteger, X509Name) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateCaCertificate(String, KeyPair, BigInteger, X509Name, X509Name) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateCertificateRequest(X509Certificate, PrivateKey) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateClientCertificate(PublicKey, PrivateKey, X509Name, X509Name) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateHex(int) - Static method in class com.peterphi.std.util.HexHelper
-
Generates a hexidecimal String of length characters
- generateHex(Random, int) - Static method in class com.peterphi.std.util.HexHelper
-
Generates a hexidecimal String of length characters
- generateKeyPair(int) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateServerCert(CertificateAuthority, String, int) - Static method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- generateServerCertificate(PublicKey, PrivateKey, X509Name, X509Name) - Static method in class com.peterphi.std.crypto.keygen.CaHelper
-
- generateUserCert(CertificateAuthority, String, int) - Static method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- gensalt(int, SecureRandom) - Static method in class com.peterphi.std.crypto.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method
- gensalt(int) - Static method in class com.peterphi.std.crypto.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method
- gensalt() - Static method in class com.peterphi.std.crypto.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method, selecting a reasonable default for the number of hashing rounds to
apply
- get(String) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- get(String) - Method in class com.peterphi.std.io.PropertyFile
-
- get(String, String) - Method in class com.peterphi.std.io.PropertyFile
-
- get(String, int) - Method in class com.peterphi.std.io.PropertyFile
-
- get(String, long) - Method in class com.peterphi.std.io.PropertyFile
-
- get(String, boolean) - Method in class com.peterphi.std.io.PropertyFile
-
- get() - Method in class com.peterphi.std.threading.SettableFuture
-
- get(long, TimeUnit) - Method in class com.peterphi.std.threading.SettableFuture
-
- get(Deadline) - Method in class com.peterphi.std.threading.SettableFuture
-
- get(TimeUnit) - Method in class com.peterphi.std.threading.Timeout
-
Get this timeout represented in a different unit
- getAlgorithms() - Method in class com.peterphi.std.crypto.digest.Digests
-
- getAll() - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
Returns a read-only set containing a list of all the keypairs currently in storage
- getAmount() - Method in class com.peterphi.std.types.StorageSize
-
Deprecated.
- getAmount(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Converts the size of this StorageSize to another unit, rounding the result to an integer
This method may result in the loss of information (due to rounding).
- getAppropriateBinaryUnit(BigInteger, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
-
Attempts to locate the most appropriate binary unit (binary units are what everyone but the ISO and the storage industry
mean by "KB", "MB", etc.
- getAppropriateDecimalUnit(BigInteger, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
-
Attempts to locate the most appropriate decimal unit (decimal units are what the ISO and the storage industry (but nobody
else) mean by "KB", "MB", etc.
- getAppropriateUnit(BigInteger, StorageUnit, StorageUnit[]) - Static method in enum com.peterphi.std.types.StorageUnit
-
Attempts to locate the most appropriate of the provided units to express the provided amount in for human use (balancing
precision and sensible expression)
- getBase64(String) - Method in class com.peterphi.std.io.PropertyFile
-
Get a value which is Base64 encoded
- getBase64(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
-
- getBest(boolean, DigestAlgorithm...) - Static method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Determines the best algorithm from a list of choices
- getBest(boolean, Iterable<DigestAlgorithm>) - Static method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Determines the "best" algorithm from a list of choices
- getBits() - Method in class com.peterphi.std.types.StorageSize
-
The number of bits represented by this object
- getBoolean(String, boolean) - Method in class com.peterphi.std.io.PropertyFile
-
- getBroadcast() - Method in class com.peterphi.std.types.InetSubnet
-
Returns the broadcast address of this subnet
- getBytes() - Method in class com.peterphi.std.types.StorageSize
-
Return the number of bytes this StorageSize represents
This method may result in information being lost (e.g.
- getCACertificate() - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- getCacheXstream() - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Determines whether XStream instance caching is currently enabled
- getCAHash() - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- getCaseSensitive() - Method in class com.peterphi.std.io.PropertyFile
-
- getCertificateFor(PublicKey, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
- getClass(String, Class<?>) - Method in class com.peterphi.std.io.PropertyFile
-
- getContent() - Method in class com.peterphi.std.types.Version
-
Deprecated.
DO NOT USE THIS METHOD - FOR BEAN SERIALISER ONLY
- getContext() - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Retrieve the inner JAXBContext
NOTE: use of this method is strongly discouraged!
- getDate() - Method in class com.peterphi.std.threading.Deadline
-
Returns the time represented by this deadline as a Date
- getDays() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getDaysPart() - Method in class com.peterphi.std.types.Timecode
-
- getDecimalAmount() - Method in class com.peterphi.std.types.StorageSize
-
Converts the size of this StorageSize to another unit, returning the result as a real number (using the BigDecimal type)
Uses the default representation unit for this type
The calculations may result in minimal loss of precision, however this is unavoidable.
- getDecimalAmount(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Converts the size of this StorageSize to another unit, returning the result as a real number (using the BigDecimal type)
The calculations may result in minimal loss of precision, however this is unavoidable.
- getDenominator() - Method in class com.peterphi.std.types.Timebase
-
- getDigest(DigestAlgorithm) - Method in class com.peterphi.std.crypto.digest.Digests
-
- getDuration() - Method in class com.peterphi.std.types.TimecodeRange
-
- getDurationInFrames() - Method in class com.peterphi.std.types.Timecode
-
Returns the duration of the timecode (from 00:00:00:00) in frames
- getDurationInFrames(boolean) - Method in class com.peterphi.std.types.Timecode
-
Returns the duration of the timecode (from 00:00:00:00) in frames
- getDurationInSeconds() - Method in class com.peterphi.std.types.Timecode
-
Returns the duration of the timecode in seconds (from 00:00:00:00), ignoring frames
- getElapsed() - Method in class com.peterphi.std.util.Ticker
-
- getElapsedTime() - Method in class com.peterphi.std.util.Ticker
-
- getEnd() - Method in class com.peterphi.std.types.TimecodeRange
-
- getEnv(String) - Method in class com.peterphi.std.system.exec.Exec
-
- getField(int, int) - Method in class com.peterphi.std.types.Version
-
Retrieves the given field from this Version
- getField(int) - Method in class com.peterphi.std.types.Version
-
Retrieves the given field from this Version
- getFile(String, KeyPair) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- getFile() - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- getFile() - Method in class com.peterphi.std.io.PropertyFile
-
- getForceNameValueDelimiterWhitespace() - Method in class com.peterphi.std.io.PropertyFile
-
- getFrames() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getFramesPart() - Method in class com.peterphi.std.types.Timecode
-
- getFramesPartAsMicroseconds() - Method in class com.peterphi.std.types.Timecode
-
Get the frames part of this timecode in microseconds
- getFramesPartAsMilliseconds() - Method in class com.peterphi.std.types.Timecode
-
Get the frames part of this timecode in milliseconds
- getHash() - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
Returns the OpenSSL hash for the Certificate Authority
- getHash() - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- getHex(String) - Method in class com.peterphi.std.io.PropertyFile
-
Get a value which has been encoded in hexidecimal; The encoding may optionally include : delimiters, but no other non-hex
characters are permitted
- getHostMax() - Method in class com.peterphi.std.types.InetSubnet
-
Gets the last host in this subnet
- getHostMin() - Method in class com.peterphi.std.types.InetSubnet
-
Gets the first host in this subnet
- getHosts() - Method in class com.peterphi.std.types.InetSubnet
-
Returns the number of hosts in this subnet
- getHours() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getHoursPart() - Method in class com.peterphi.std.types.Timecode
-
- getId() - Method in class com.peterphi.std.auth.yubikey.YubicoClient
-
Returns the ID passed to the initialized Yubico object.
- getImplementation() - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Retrieves the implementation of this algorithm
- getInstance() - Static method in class com.peterphi.std.auth.yubikey.YubicoClient
-
- getInstance() - Static method in class com.peterphi.std.crypto.digest.impl.CRC32Digester
-
- getInstance() - Static method in class com.peterphi.std.crypto.digest.impl.LengthDigester
-
- getInstance(String) - Static method in class com.peterphi.std.types.Timebase
-
Parses an encoded timebase.
- getInstance(long, boolean, Timebase) - Static method in class com.peterphi.std.types.Timecode
-
- getInstance(SampleCount) - Static method in class com.peterphi.std.types.Timecode
-
- getInstance(SampleCount, boolean) - Static method in class com.peterphi.std.types.Timecode
-
Deprecated.
drop frame timecode is not correctly supported currently
- getInstance(SampleCount, boolean, boolean) - Static method in class com.peterphi.std.types.Timecode
-
Deprecated.
use method without supportDays (supportDays is now implicitly true) or dropFrame (drop frame timecode is not
correctly supported currently)
- getInstance(String) - Static method in class com.peterphi.std.types.Timecode
-
Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase).
- getInstance(String, Timebase) - Static method in class com.peterphi.std.types.Timecode
-
Part a Timecode encoded in the SMPTE style ([dd:]hh:mm:ss:ff - or [dd:]hh:mm:ss;ff for
drop-frame
timecode) alongside a timebase.
- getInstance(long, boolean, Timebase, boolean) - Static method in class com.peterphi.std.types.Timecode
-
Deprecated.
use method without supportDays
- getInstance() - Static method in class com.peterphi.std.types.TimecodeComparator
-
- getInstance(JAXBContext) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to get a JAXBSerialiser from an existing JAXBContext.
This is an expensive operation and so the result should ideally be cached
- getInstance(Class<?>...) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to get a JAXBSerialiser for a set of classes with the underlying JAXB implementation picked using the
default
rules for JAXB acquisition
This is an expensive operation and so the result should ideally be cached
- getInstance(String) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to get a JAXBSerialiser from a JAXB Context Path (i.e.
- getInstance(Class<?>) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
-
- getInstance(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
-
- getInteger(String, int) - Method in class com.peterphi.std.io.PropertyFile
-
- getInterfaceForLocalIp(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Given a local IP address, returns the Interface it corresponds to
- getIntSamplesPerSecond() - Method in class com.peterphi.std.types.Timebase
-
Samples per second, cast to an integer (accurate only if the numerator is 1)
- getIP(String, InetAddress) - Method in class com.peterphi.std.io.PropertyFile
-
- getIP() - Method in class com.peterphi.std.types.InetSubnet
-
Returns the IP address represented by this subnet; when in its canonical form, getIP() will return the same as
getNetwork()
- getISOUnit() - Method in enum com.peterphi.std.types.StorageUnit
-
Return the ISO unit for this storage unit.
for MEGABYTE this will return MiB (to avoid further confusion)
- getIssuer(X509Certificate, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
- getIssuer() - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- getIssuerDNsFromChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
Extracts the DNs of the issuers from a certificate chain.
- getKeypair(String) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- getKeypair(KeyStore, String, char[]) - Static method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Helper method; retrieves a named public/private keypair from a KeyStore.
- getLeft() - Method in class com.peterphi.std.types.Both
-
- getLeft() - Method in class com.peterphi.std.types.Either
-
- getLevel() - Method in class com.peterphi.std.io.TabLevel
-
- getLineCount() - Method in class com.peterphi.std.io.PropertyFile
-
- getLocalhost() - Static method in class com.peterphi.std.net.IpHelper
-
Gets the hostname of localhost
- getLocalIp() - Static method in class com.peterphi.std.net.IpHelper
-
Gets the local IP address
- getLocalIpAddress() - Static method in class com.peterphi.std.net.IpHelper
-
Returns the primary InetAddress of localhost
- getLocalIpAddress(String) - Static method in class com.peterphi.std.net.IpHelper
-
Returns the IP address associated with iface
- getLocalIpAddresses() - Static method in class com.peterphi.std.net.IpHelper
-
Returns a list of local InetAddresses for this machine
- getLocalIpAddresses(boolean) - Static method in class com.peterphi.std.net.IpHelper
-
Returns a list of local InetAddresses for this machine
- getLocalIpAddresses(boolean, boolean) - Static method in class com.peterphi.std.net.IpHelper
-
Returns a list of local InetAddresses for this machine
- getLocalIpAddresses(String, boolean) - Static method in class com.peterphi.std.net.IpHelper
-
- getLong(String, long) - Method in class com.peterphi.std.io.PropertyFile
-
- getMacFor(NetworkInterface) - Static method in class com.peterphi.std.net.IpHelper
-
Given a network interface, determines its mac address
- getMacForLocalIp(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Given an InetAddress, determines the MAC Address (hardware address) of the corresponding interface
- getMilliseconds() - Method in class com.peterphi.std.threading.Timeout
-
Get the number of milliseconds this timeout represents
- getMinutes() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getMinutesPart() - Method in class com.peterphi.std.types.Timecode
-
- getMode() - Method in class com.peterphi.std.xstream.XSHelper
-
Returns the current graphing mode
- getMoxy(String) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to get a JAXBSerialiser that uses EclipseLink MOXy for all operations
- getMoxy(Class<?>...) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to get a JAXBSerialiser that uses EclipseLink MOXy for all operations
- getNetmask() - Method in class com.peterphi.std.types.InetSubnet
-
Retrieves the prefix as a netmask (eg.
- getNetwork() - Method in class com.peterphi.std.types.InetSubnet
-
Returns the InetAddress representing the network (fully masked by the prefix); this is the IP address with the last
prefix bits masked to zero
- getNoObjectGraph() - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Returns the current state of object graph serialisation
- getNumerator() - Method in class com.peterphi.std.types.Timebase
-
- getPassword() - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- getPlural() - Method in enum com.peterphi.std.types.StorageUnit
-
Get the plural version of this unit (e.g.
- getPrefix() - Method in class com.peterphi.std.types.InetSubnet
-
Returns the prefix length (0 to 32 for an IPv4 subnet)
The larger the prefix the larger the block if IP addresses represented by this subnet
- getPrettyPrint() - Method in class com.peterphi.std.xstream.XSHelper
-
- getPrincipals(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
- getPriority() - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
- getPrivateKey(String) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- getPrivateKey(File) - Static method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- getProcessBuilder() - Method in class com.peterphi.std.system.exec.Exec
-
Returns a ProcessBuilder for use in a manual launching
- getPublicKey(String) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- getPublicKey(File) - Static method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- getRate() - Method in class com.peterphi.std.types.SampleCount
-
- getRate() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getRedirectError() - Method in class com.peterphi.std.system.exec.Exec
-
- getRegisterStandardTypeConverters() - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Determines whether standard type converters have been enabled
- getRight() - Method in class com.peterphi.std.types.Both
-
- getRight() - Method in class com.peterphi.std.types.Either
-
- getSampleCount() - Method in class com.peterphi.std.types.Timecode
-
Returns a sample count as a delta from the timecode 00:00:00:00
- getSampleCount(Timecode) - Method in class com.peterphi.std.types.Timecode
-
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object
- getSampleCountPrecise(Timecode) - Method in class com.peterphi.std.types.Timecode
-
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object
- getSamples() - Method in class com.peterphi.std.types.SampleCount
-
- getSamples(Timebase) - Method in class com.peterphi.std.types.SampleCount
-
Returns the number of samples represented by this SampleCount, converted to newRate.
This method can lose precision if the samples cannot be precisely represented.
- getSamplesPerSecond() - Method in class com.peterphi.std.types.Timebase
-
The number of samples each second
- getSamplesPrecise(Timebase) - Method in class com.peterphi.std.types.SampleCount
-
Returns the number of samples represented by this SampleCount, converted to newRate.
- getSeconds() - Method in class com.peterphi.std.types.SampleCount
-
Compute the duration of this sample count in seconds
The intention of this method is to be used for presentation, rather than accurate computation so it does not warn about
resampling errors
- getSeconds() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- getSecondsPart() - Method in class com.peterphi.std.types.Timecode
-
- getSecondsPerSample() - Method in class com.peterphi.std.types.Timebase
-
The number of seconds each sample represents
- getSingular() - Method in enum com.peterphi.std.types.StorageUnit
-
Get the singular version of this unit (e.g.
- getSmpteTimecode(String, Timebase) - Static method in class com.peterphi.std.types.Timecode
-
Deprecated.
- getStandardError() - Method in class com.peterphi.std.system.exec.Execed
-
- getStandardErrorStream() - Method in class com.peterphi.std.system.exec.BaseExeced
-
- getStandardInputStream() - Method in class com.peterphi.std.system.exec.BaseExeced
-
- getStandardOut() - Method in class com.peterphi.std.system.exec.Execed
-
- getStandardOutputStream() - Method in class com.peterphi.std.system.exec.BaseExeced
-
- getStart() - Method in class com.peterphi.std.types.TimecodeRange
-
- getStart() - Method in class com.peterphi.std.util.Ticker
-
- getStartDate() - Method in class com.peterphi.std.util.Ticker
-
- getSubjectDNFromChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
Extracts the Subject: the final certificate in a chain
- getTimebase() - Method in class com.peterphi.std.types.Timecode
-
- getTimeLeft() - Method in class com.peterphi.std.threading.Deadline
-
Determines the amount of time left (in milliseconds) until the deadline; if the deadline has been reached or passed this
method returns 0
- getTimeLeft(TimeUnit) - Method in class com.peterphi.std.threading.Deadline
-
Determines the amount of time left (in a custom unit) until the deadline; if the deadline has been reached or passed this
method returns 0
- getTimeoutLeft() - Method in class com.peterphi.std.threading.Deadline
-
Determines the amount of time leftuntil the deadline and returns it as a timeout
- getType() - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- getUnit() - Method in class com.peterphi.std.types.StorageSize
-
The unit which this Storage Size should be expressed by default
- getURI(String, String) - Method in class com.peterphi.std.io.PropertyFile
-
- getVariableCount() - Method in class com.peterphi.std.io.PropertyFile
-
- getVerifier() - Method in class com.peterphi.std.crypto.digest.Digests
-
- getVerifier(boolean) - Method in class com.peterphi.std.crypto.digest.Digests
-
Acquire a verifier capable of determining whether a download is valid
If no digests are available then a verifier will be returned that considers anything valid
- getWildcardMask() - Method in class com.peterphi.std.types.InetSubnet
-
Retrieves the wildcard mask for the netmask of this subnet
- getWorkingDirectory() - Method in class com.peterphi.std.system.exec.Exec
-
- GLOBUS - Static variable in class com.peterphi.std.crypto.DNReformatter
-
Synonym for ACTIVE_DIRECTORY, the style that Globus applications tend to use (descending (CN last), slash-separated with a
leading slash)
- GLOBUS_ALGORITHM_HACK - Static variable in class com.peterphi.std.crypto.keygen.CaHelper
-
If true, changes the default algorithm to MD5WITHRSA
- GLOBUS_COG_HACK - Static variable in class com.peterphi.std.crypto.keygen.CaHelper
-
If true, enables a hack which works around GT 4.2.1 "Bug 3299:12 Extended Key Usage certificate extension not supported"
(a
problem in CoG)
- gt(int) - Static method in class com.peterphi.std.types.CompareHelper
-
Evaluates the result of a.compareTo(b) and returns a > b
- gt(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
-
a > b
- gt(Timecode) - Method in class com.peterphi.std.types.Timecode
-
- gt(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
-
- GZIP - Static variable in class com.peterphi.std.util.Base64
-
Specify that data should be gzip-compressed in second bit.
- ICopyProgressMonitor - Interface in com.peterphi.std.io
-
- Id - Class in com.peterphi.std.types
-
An abstract base type for a case-sensitive identifier
All implementations must directly extend this type (ie.
- Id(String) - Constructor for class com.peterphi.std.types.Id
-
Constructs a new id
- id - Variable in class com.peterphi.std.types.Id
-
The internal value of this id; while public, this should only be required very rarely
- IDigester - Interface in com.peterphi.std.crypto.digest
-
An interface for an implementation of a message digest algorithm
- IDigestVerifier - Interface in com.peterphi.std.crypto.digest
-
A method which can verify that a piece of content matches an expected digest
- IMergeConflictResolver - Interface in com.peterphi.std.io.properties
-
- Inet4AddressConverter - Class in com.peterphi.std.xstream.serialisers
-
Title: Inet4Address Converter
- Inet4AddressConverter() - Constructor for class com.peterphi.std.xstream.serialisers.Inet4AddressConverter
-
- Inet6AddressConverter - Class in com.peterphi.std.xstream.serialisers
-
Title: Inet6Address Converter
- Inet6AddressConverter() - Constructor for class com.peterphi.std.xstream.serialisers.Inet6AddressConverter
-
- InetAddressConverter - Class in com.peterphi.std.xstream.serialisers
-
- InetAddressConverter() - Constructor for class com.peterphi.std.xstream.serialisers.InetAddressConverter
-
- InetSubnet - Class in com.peterphi.std.types
-
Represents an IPv4 network subnet (a combination of an IP address and a prefix.
- InetSubnet(InterfaceAddress) - Constructor for class com.peterphi.std.types.InetSubnet
-
- InetSubnet(String) - Constructor for class com.peterphi.std.types.InetSubnet
-
Constructs an inet subnet from CIDR representation (x.x.x.x/prefix)
- InetSubnet(String, int) - Constructor for class com.peterphi.std.types.InetSubnet
-
- InetSubnet(int, int) - Constructor for class com.peterphi.std.types.InetSubnet
-
Construct a subnet based on
- InetSubnet(InetAddress, int) - Constructor for class com.peterphi.std.types.InetSubnet
-
Produces a subnet based on a network IP and a prefix
- InetSubnet(InetAddress, InetAddress) - Constructor for class com.peterphi.std.types.InetSubnet
-
Produces a subnet based on a network IP and a netmask.
- init() - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- interested(DERObjectIdentifier) - Method in class com.peterphi.std.crypto.DNReformatter
-
- interrupt(boolean) - Method in class com.peterphi.std.threading.Daemon
-
Politely asks the daemon to reconsider its termination condition.
- intsToBytes(int[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
-
- intsToBytes(List<Integer>) - Static method in class com.peterphi.std.io.nio.NIOHelper
-
- intToBytes(int) - Static method in class com.peterphi.std.io.nio.NIOHelper
-
- IpHelper - Class in com.peterphi.std.net
-
- IPProtocol - Enum in com.peterphi.std.net
-
An enumeration of common Internet Protocols
- IPV4_ADDRESS_SPACE - Static variable in class com.peterphi.std.types.InetSubnet
-
The entire IPv4 address space (including restricted/reserved/private IPs)
This is the subnet 0.0.0.0/0
- IPV6_ZERO - Static variable in class com.peterphi.std.net.IpHelper
-
The IPv6 equivalent of the "Quad Zero" IPv4 address (0.0.0.0).
- isAbsoluteFile(File) - Static method in class com.peterphi.std.io.FileHelper
-
- isAbsoluteFile(String) - Static method in class com.peterphi.std.io.FileHelper
-
- isAncestor(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
- isAvailable() - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Determines whether this algorithm is available for use
- isBlacklisted() - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Determines whether this algorithm has been blacklisted.
Blacklisted algorithms must not be used
- isCancelled() - Method in class com.peterphi.std.threading.SettableFuture
-
- isCanonical() - Method in class com.peterphi.std.types.InetSubnet
-
Determines whether this InetSubnet is currently in its canonical form
- isCryptographicallySecure() - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
- isDone() - Method in class com.peterphi.std.threading.SettableFuture
-
- isDropFrame() - Method in class com.peterphi.std.types.Timecode
-
- isDropFrame() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- isExpired() - Method in class com.peterphi.std.threading.Deadline
-
Determines whether the deadline has expired yet
- isFinished() - Method in class com.peterphi.std.system.exec.BaseExeced
-
Determines if the application has completed yet
- isFinished() - Method in class com.peterphi.std.system.exec.Execed
-
- isLeft() - Method in class com.peterphi.std.types.Either
-
- isLocalAddress(String) - Static method in class com.peterphi.std.net.IpHelper
-
Determines if a specified host or IP refers to the local machine
- isLocalAddress(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Determines if a specified host or IP refers to the local machine
- isMember(int) - Method in class com.peterphi.std.types.InetSubnet
-
Determines whether a given IP, in numeric representation (as returned by aton()) is a member of this subnet
This is the fastest way to determine subnet membership
- isMember(String) - Method in class com.peterphi.std.types.InetSubnet
-
Determines whether a given IP, given as an IPv4 address in its string representation (x.x.x.x) is a member of this subnet
- isMember(InetAddress) - Method in class com.peterphi.std.types.InetSubnet
-
Determines whether a given IP is a member of this subnet
- isNegative() - Method in class com.peterphi.std.types.Timecode
-
- isNegative() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- isPublicallyRoutable(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Deprecated.
use isPubliclyRoutable(java.net.InetAddress)
- isPubliclyRoutable(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Determines whether a particular IP address is publicly routable on the internet
- isRight() - Method in class com.peterphi.std.types.Either
-
- isRunning() - Method in class com.peterphi.std.threading.Daemon
-
Returns whether the daemon is in the process of terminating
- isSelfSigned(X509Certificate) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
Determines if a certificate is a self signed certificate
- isSignedBy(X509Certificate, PublicKey) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
- IssuedCertificate - Class in com.peterphi.std.crypto.keygen.ca
-
- IssuedCertificate(X509Certificate, KeyPair, X509Certificate) - Constructor for class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- issueServer(PublicKey, String) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- issueUser(PublicKey, String) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- isThreadRunning() - Method in class com.peterphi.std.threading.Daemon
-
Determines if this daemon's thread is alive
- isValid() - Method in class com.peterphi.std.threading.Deadline
-
Determine whether the deadline is still valid (ie.
- isValidCiscoWildcard(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Determines if a specified address is a valid Cisco Wildcard (cisco's representation of a netmask)
- isValidNetmask(String) - Static method in class com.peterphi.std.net.IpHelper
-
Validates a netmask
- isValidNetmask(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
-
Validates a netmask
- isValidNetmask(byte[]) - Static method in class com.peterphi.std.net.IpHelper
-
Validates a netmask
- isZero() - Method in class com.peterphi.std.types.StorageSize
-
Determines whether this StorageSize represents zero (which is the same in any unit)
- iterate(Iterator<T>) - Static method in class com.peterphi.std.util.ListUtility
-
- iterate(Enumeration<T>) - Static method in class com.peterphi.std.util.ListUtility
-
- iterator() - Method in class com.peterphi.std.types.HybridIterator
-
- random() - Static method in class com.peterphi.std.types.SimpleId
-
Return an Id which uses 32 random alphanumeric characters as its value
- read() - Method in class com.peterphi.std.io.CharSequenceReader
-
Reads a single character.
- read(char[], int, int) - Method in class com.peterphi.std.io.CharSequenceReader
-
Reads characters into a portion of an array.
- read() - Method in class com.peterphi.std.io.StringBuilderReader
-
Reads a single character.
- read(char[], int, int) - Method in class com.peterphi.std.io.StringBuilderReader
-
Reads characters into a portion of an array.
- readBytes(InputStream, int) - Static method in class com.peterphi.std.io.StreamUtil
-
- readFromSystem(boolean) - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- readOnly - Variable in class com.peterphi.std.io.PropertyFile
-
- readOnly(File) - Static method in class com.peterphi.std.io.PropertyFile
-
Creates a read-only version of a property file
Fails if the file does not exist.
- readOnlyUnion(File...) - Static method in class com.peterphi.std.io.PropertyFile
-
Creates a read-only union of a number of property files
If any property file is null or the file it points to does not exist then it is ignored
- readOnlyUnion(PropertyFile...) - Static method in class com.peterphi.std.io.PropertyFile
-
Construct a new read-only PropertyFile which merges the contents of a number of other PropertyFile objects
Null PropertyFiles are ignored.
- readPID(File) - Static method in class com.peterphi.std.io.FileHelper
-
Reads a PID (Process Id) file
- readPID(File, boolean) - Static method in class com.peterphi.std.io.FileHelper
-
Reads a PID (Process Id) file
- ready() - Method in class com.peterphi.std.io.CharSequenceReader
-
Tells whether this stream is ready to be read.
- ready() - Method in class com.peterphi.std.io.StringBuilderReader
-
Tells whether this stream is ready to be read.
- reformat(X500Principal) - Method in class com.peterphi.std.crypto.DNReformatter
-
This is a convenience method which calls reformatToString and wraps the result in an X500Principal; this
method will fail with an IllegalArgumentException if the output of this formatter is not parseable by X500Principal (eg.
- reformat(X509Name) - Method in class com.peterphi.std.crypto.DNReformatter
-
This is a convenience method which calls reformatToString and wraps the result in an X509Name; this method
will fail with an IllegalArgumentException if the output of this formatter is not parseable by X509Name (eg.
- reformatToString(X500Principal) - Method in class com.peterphi.std.crypto.DNReformatter
-
Reformats an X500Principal; the result may not be a valid X500Principal, so this method returns a String
- reformatToString(X509Name) - Method in class com.peterphi.std.crypto.DNReformatter
-
Reformats an X509Name; the result may not be a valid X509Name, so this method returns a String
- registerConverter(Converter) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Registers a Converter with the internal XStream instance
- release() - Method in class com.peterphi.std.io.FileHelper.LockRecord
-
- remove(KeyPair) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- remove(String) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- remove(String) - Method in class com.peterphi.std.io.PropertyFile
-
- remove() - Method in class com.peterphi.std.types.HybridIterator
-
- removeAll(Iterable<KeyPair>) - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- resample(Timebase) - Method in class com.peterphi.std.types.SampleCount
-
Resample this sample count to another rate
- resample(long, Timebase) - Method in class com.peterphi.std.types.Timebase
-
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding.
- resample(long, Timebase, boolean) - Method in class com.peterphi.std.types.Timebase
-
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding.
- resample(double, Timebase) - Method in class com.peterphi.std.types.Timebase
-
Convert a sample count from one timebase to another
- resample(Timebase) - Method in class com.peterphi.std.types.Timecode
-
Resample this timecode to another timebase
- resamplePrecise(long, Timebase) - Method in class com.peterphi.std.types.Timebase
-
Convert a sample count from one timebase to another, throwing an exception if precision is lost
- resamplePrecise(Timebase) - Method in class com.peterphi.std.types.Timecode
-
Resamples
- ResamplingException - Exception in com.peterphi.std.types
-
Thrown to indicate that it is not possible to represent a timecode or sample count in a precise way
- ResamplingException(String, Throwable) - Constructor for exception com.peterphi.std.types.ResamplingException
-
- ResamplingException(Throwable) - Constructor for exception com.peterphi.std.types.ResamplingException
-
- ResamplingException(String) - Constructor for exception com.peterphi.std.types.ResamplingException
-
- ResamplingException() - Constructor for exception com.peterphi.std.types.ResamplingException
-
- reset() - Method in class com.peterphi.std.io.CharSequenceReader
-
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.
- reset() - Method in class com.peterphi.std.io.StringBuilderReader
-
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.
- resolveConflict(String, String, String) - Method in interface com.peterphi.std.io.properties.IMergeConflictResolver
-
- resolveFuture(Future<T>) - Method in class com.peterphi.std.threading.Deadline
-
Resolves a Future, automatically cancelling it in the event of a timeout / failure
- resolveFuture(Future<T>, boolean) - Method in class com.peterphi.std.threading.Deadline
-
Resolves a Future, potentially automatically cancelling it in the event of a timeout / failure
- result - Variable in class com.peterphi.std.crypto.digest.impl.NullVerifier
-
- right - Variable in class com.peterphi.std.types.Either
-
- rootUtility(String...) - Static method in class com.peterphi.std.system.exec.Exec
-
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
- rootUtility(Iterable<String>) - Static method in class com.peterphi.std.system.exec.Exec
-
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
- ROUNDING_MODE - Static variable in enum com.peterphi.std.types.StorageUnit
-
The rounding mode this class uses; this is, by default, BigDecimal.ROUND_HALF_UP
- routeStreamThroughProcess(Process, InputStream, boolean) - Static method in class com.peterphi.std.io.StreamUtil
-
Given a Process, this function will route the flow of data through it & out again
- RSAGenerator - Class in com.peterphi.std.crypto.keygen
-
- run(T) - Method in class com.peterphi.std.threading.ParamRunnable
-
- run() - Method in class com.peterphi.std.threading.ParamRunnableShell
-
- run() - Method in class com.peterphi.std.threading.RunnableCallableFuture
-
- runAs(String) - Method in class com.peterphi.std.system.exec.Exec
-
- runAsSuperuser() - Method in class com.peterphi.std.system.exec.Exec
-
- RunnableCallableFuture<T> - Class in com.peterphi.std.threading
-
A wrapper type which takes a Callable and turns it into a RunnableFuture
- RunnableCallableFuture(Callable<T>) - Constructor for class com.peterphi.std.threading.RunnableCallableFuture
-
- safeMove(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
Deprecated.
use commons file utils FileUtils.moveDirectoryToDirectory instead
- SampleCount - Class in com.peterphi.std.types
-
A number of samples at a given sample rate
- SampleCount(long, Timebase) - Constructor for class com.peterphi.std.types.SampleCount
-
- SANITY_CHECK - Static variable in class com.peterphi.std.types.Id
-
If true the constructor for Id will verify that all Ids comply with the
- save() - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- save(File) - Method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Saves the Document, as manipulated by this class, as a File
- save() - Method in class com.peterphi.std.io.PropertyFile
-
- save(File, String) - Method in class com.peterphi.std.io.PropertyFile
-
- save(OutputStream) - Method in class com.peterphi.std.io.PropertyFile
-
- save(String) - Method in class com.peterphi.std.io.PropertyFile
-
- save(String, OutputStream) - Method in class com.peterphi.std.io.PropertyFile
-
- save(String, Writer) - Method in class com.peterphi.std.io.PropertyFile
-
- saveCertPEM(File) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveCertPEM(Writer) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveHash(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- saveJKS(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- saveJKS(File) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveJKS(OutputStream) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveKeyPEM(File) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveKeyPEM(Writer) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveP12(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- saveP12(File) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveP12(File, char[]) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- saveP12(OutputStream, char[]) - Method in class com.peterphi.std.crypto.keygen.ca.IssuedCertificate
-
- savePrivatePEM(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- savePublicJKS(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- savePublicPEM(File) - Method in class com.peterphi.std.crypto.keygen.ca.CertificateAuthority
-
- scanAll() - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- seal() - Method in class com.peterphi.std.crypto.digest.Digests
-
- seconds(Timebase, int) - Static method in class com.peterphi.std.types.SampleCount
-
- serialise(Node) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialise(Node, StreamResult) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialise(Node, OutputStream) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialise(Node, Writer) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialise(Node, File) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialise(Object) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- serialise(Object, Writer) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- serialise(Object, OutputStream) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- serialise(Object, File) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- serialise(Object, Node) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
- serialise(Document) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(Document, Writer) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(Document, OutputStream) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(Element) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(Element, Writer) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(Element, OutputStream) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialise(OutputStream, Object) - Method in class com.peterphi.std.xstream.XSHelper
-
Serialises an object into an OutputStream
- serialise(Writer, Object) - Method in class com.peterphi.std.xstream.XSHelper
-
Serialises an object into an OutputStream
- serialise(File, Object) - Method in class com.peterphi.std.xstream.XSHelper
-
Serialises an object into an OutputStream
- serialise(Object) - Method in class com.peterphi.std.xstream.XSHelper
-
Serialises an object into a String
- serialise(Object) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Uses the default XStream instance to serialise an object to a String
- serialise(File, Object) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Uses the default XStream instance to serialise an object to a File
- serialise(OutputStream, Object) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Uses the default XStream instance to serialise an object to an OutputStream
- serialiseBytes(Node) - Static method in class com.peterphi.std.util.DOMUtils
-
- serialiseBytes(Element) - Static method in class com.peterphi.std.util.JDOMUtils
-
- serialiseToDocument(Object) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Helper method to serialise an Object to an org.w3c.dom.Document
- set(ChmodBit...) - Static method in enum com.peterphi.std.io.ChmodBit
-
- set(String, String) - Method in class com.peterphi.std.io.PropertyFile
-
- set(String, long) - Method in class com.peterphi.std.io.PropertyFile
-
- set(String, int) - Method in class com.peterphi.std.io.PropertyFile
-
- set(T) - Method in class com.peterphi.std.threading.SettableFuture
-
- setBase64(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
-
- setCacheXstream(boolean) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Enables or disables the caching of XStream instances internally When changed any cached xstream instance will be discarded
- setContent(int[]) - Method in class com.peterphi.std.types.Version
-
Deprecated.
DO NOT USE THIS METHOD - FOR BEAN SERIALISER ONLY
- setDefaultImplementation(IDigester) - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Set the default implementation for an algorithm; this will be used if no other implementations are registered
- setEnv(String, String) - Method in class com.peterphi.std.system.exec.Exec
-
- setFile(File) - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- setFile(File) - Method in class com.peterphi.std.io.PropertyFile
-
- setForceNameValueDelimiterWhitespace(boolean) - Method in class com.peterphi.std.io.PropertyFile
-
- setHex(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
-
- setImplementation(IDigester, int) - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Set the implementation, permitted that no other implementations have attempted to register with a higher priority
- setImplementation(IDigester) - Method in enum com.peterphi.std.crypto.digest.DigestAlgorithm
-
Set a new implementation
- setKeypair(String, KeyPair) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- setMode(int) - Method in class com.peterphi.std.xstream.XSHelper
-
Sets the current graphing mode, logging its value for use in this class.
Possible values are: XStream.NO_REFERENCES, XStream.XPATH_RELATIVE_REFERENCES, XStream.XPATH_ABSOLUTE_REFERENCES,
XStream.ID_REFERENCES
- setNoObjectGraph(boolean) - Method in class com.peterphi.std.xstream.XSHelper
-
- setNoObjectGraph(boolean) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Enables or disabled object graph serialisation (whether the same object is duplicated or linked in the output XML
document)
- setPassword(String) - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- setPrettyOutput(boolean) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Enable/Disable pretty printing
- setPrettyPrint(boolean) - Method in class com.peterphi.std.xstream.XSHelper
-
Enables/Disables pretty printing (indented XML output)
- setPrivateKey(String, PrivateKey) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- setPublicKey(String, PublicKey) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- setPublicKey(String, X509Certificate) - Method in class com.peterphi.std.crypto.keystore.DirectoryKeystore
-
- setRedirectError(boolean) - Method in class com.peterphi.std.system.exec.Exec
-
- setRegisterStandardTypeConverters(boolean) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Sets whether the standard type converters (eg.
- setSchema(Schema) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
-
Optionally specify the schema to use for all future serialisation/deserialisation methods
- SettableFuture<T> - Class in com.peterphi.std.threading
-
A simple Future whose value will be set at some later date
- SettableFuture() - Constructor for class com.peterphi.std.threading.SettableFuture
-
- SettableFuture(ParamInvokeable<SettableFuture<T>>, ParamInvokeable<SettableFuture<T>>) - Constructor for class com.peterphi.std.threading.SettableFuture
-
Create a SettableFuture which will potentially execute tasks upon set and upon cancel; the handlers will hold the exclusive
lock on the monitor for the duration of their execution
The handlers, (as they are ParamInvokeables) run synchronously with the call to set or cancel;
they run after the effects have taken place and after any interested parties waiting on the monitor have been notified
- setType(String) - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- setWorkingDirectory(File) - Method in class com.peterphi.std.system.exec.Exec
-
- setXs(XSHelper) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Sets the internal XStream instance to use (provided caching is enabled)
- SHA1 - Static variable in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(byte[]) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(File) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(File, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- sha1(InputStream, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- SHA1 - Static variable in class com.peterphi.std.crypto.digest.impl.JCEDigester
-
- sha1hmac(String, String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
Performs HMAC-SHA1 on the UTF-8 byte representation of strings
- sha1hmac(String, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
Performs HMAC-SHA1 on the UTF-8 byte representation of strings, returning the hexidecimal hash as a result
- sha1hmac(byte[], byte[]) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
-
- SHA256 - Static variable in class com.peterphi.std.crypto.digest.impl.JCEDigester
-
- SHA512 - Static variable in class com.peterphi.std.crypto.digest.impl.JCEDigester
-
- shouldStartAsDaemon() - Method in class com.peterphi.std.threading.Daemon
-
Overloading this method to return true will start this daemon's thread as a Daemon Thread
- sign(String, KeyPair) - Method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Given a keypair, signs this document and adds the public key to the signature tag
- sign(String, PublicKey, PrivateKey) - Method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Given a pair of keys, signs this document and adds the public key to the signature tag
- SimpleId - Class in com.peterphi.std.types
-
A simple, untyped Id field; this is one step above having a String id
It is recommended that users extend Id themselves rather than using this type (as a SimpleId adds no discernable information
about what the id is for)
- SimpleId(String) - Constructor for class com.peterphi.std.types.SimpleId
-
- SimpleId(UUID) - Constructor for class com.peterphi.std.types.SimpleId
-
- size() - Method in class com.peterphi.std.crypto.keystore.FingerprintKeyStorage
-
- size(long) - Method in interface com.peterphi.std.io.ICopyProgressMonitor
-
A method which MAY be called to inform the monitor of the total size
- size(T[]) - Static method in class com.peterphi.std.util.ListUtility
-
- size(Collection<T>) - Static method in class com.peterphi.std.util.ListUtility
-
- skip(long) - Method in class com.peterphi.std.io.CharSequenceReader
-
Skips the specified number of characters in the stream.
- skip(long) - Method in class com.peterphi.std.io.StringBuilderReader
-
Skips the specified number of characters in the stream.
- sleep() - Method in class com.peterphi.std.threading.Deadline
-
Sleeps the current thread until interrupted or until this deadline has expired.
- sleep(boolean) - Method in class com.peterphi.std.threading.Deadline
-
Sleeps the current thread until this deadline has expired; if mayInterrupt is true then an interrupt will
cause this method to return true
This is essentially a neater way of calling Thread.sleep
- sleep() - Method in class com.peterphi.std.threading.Timeout
-
Sleep for the duration of this timeout (or until the thread is interrupted)
- smallest(StorageUnit, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
-
Returns the the most diminutive unit of unit and unit2
- smartEquals(File, File, boolean) - Static method in class com.peterphi.std.io.FileHelper
-
Determines if 2 files or directories are equivalent by looking inside them
- soonest(Deadline...) - Static method in class com.peterphi.std.threading.Deadline
-
Retrieve the deadline with the least time remaining until it expires
- spawn(Exec) - Static method in class com.peterphi.std.system.exec.BaseExeced
-
- spawn(Exec) - Static method in class com.peterphi.std.system.exec.Execed
-
- start() - Method in interface com.peterphi.std.io.ICopyProgressMonitor
-
- start() - Method in class com.peterphi.std.system.exec.Exec
-
Launches the process, returning a handle to it for IO ops, etc.
The finish condition for the OutputProcess is that all processes outputting to standard out must be complete before
proceeding
- start() - Method in class com.peterphi.std.threading.Timeout
-
Create a new deadline which is the given period of time in the future
- start(Deadline) - Method in class com.peterphi.std.threading.Timeout
-
Create a new deadline within a given maximum timeframe; this prevents
- startBasic() - Method in class com.peterphi.std.system.exec.Exec
-
Launches the process, returning a handle to it for IO ops, etc
the caller must read the output streams: otherwise the buffers may fill up and the remote program will be suspended
indefinitely
- startManually() - Method in class com.peterphi.std.system.exec.Exec
-
Deprecated.
- startThread() - Method in class com.peterphi.std.threading.Daemon
-
Starts this daemon, creating a new thread for it (the name of which will be set to the SimpleName of its class)
- startThread(String) - Method in class com.peterphi.std.threading.Daemon
-
Starts this daemon, creating a new thread for it
- stoa(String) - Static method in class com.peterphi.std.net.IpHelper
-
Parses an IP address, returning it as an InetAddress
This method exists to prevent code which is handling valid IP addresses from having to catch UnknownHostException
excessively (when there is often no choice but to totally fail out anyway)
- stopAll(List<? extends Daemon>) - Static method in class com.peterphi.std.threading.Daemon
-
Stop all the daemons in a given list:
- stopThread() - Method in class com.peterphi.std.threading.Daemon
-
Requests the daemon terminate by setting a flag and sending an interrupt to the thread
- STORAGE_DECIMAL - Static variable in enum com.peterphi.std.types.StorageUnit
-
- StorageSize - Class in com.peterphi.std.types
-
Note: this class has a natural ordering that is inconsistent with equals.
- StorageSize(BigInteger, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
-
Creates a new StorageSize where the value is equal to the provided value
If the unit is in BITS then any fractional bytes resulting from the conversion will be discarded (e.g.
- StorageSize(BigDecimal, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
-
Creates a new StorageSize where the value is an approximation of the provided value
Since this is an approximation some information may be lost.
- StorageSize(StorageUnit, BigInteger) - Constructor for class com.peterphi.std.types.StorageSize
-
Internal constructor.
- StorageSize(long, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
-
- StorageUnit - Enum in com.peterphi.std.types
-
Represents Storage unit conversions in a similar fashion to how TimeUnit represents time unit conversions
This enumeration reflects the confused landscape of storage units: it contains computer science units (binary), storage
industry units (decimal) and network industry units (decimal, bit-based)
KILOBYTE as used here is, in fact, according to the ISO a Kibibyte.
- STREAM_SLEEP_TIME - Static variable in class com.peterphi.std.io.StreamUtil
-
- streamCopy(InputStream, OutputStream) - Static method in class com.peterphi.std.io.StreamUtil
-
- streamCopy(InputStream, OutputStream, ICopyProgressMonitor) - Static method in class com.peterphi.std.io.StreamUtil
-
- streamCopy(Reader, Writer) - Static method in class com.peterphi.std.io.StreamUtil
-
- streamCopy(InputStream, Writer) - Static method in class com.peterphi.std.io.StreamUtil
-
Copies the contents of an InputStream, using the default encoding, into a Writer
- StreamUtil - Class in com.peterphi.std.io
-
Title: Stream Utility Class
- StringBuilderReader - Class in com.peterphi.std.io
-
A Reader whose source is a StringBuilder.
This is faster than StringReader and CharSequenceReader (and should produce less garbage than CharSequenceReader)
Implementation based on that of StringReader
- StringBuilderReader(StringBuilder) - Constructor for class com.peterphi.std.io.StringBuilderReader
-
- StringComparableVersionConverter - Class in com.peterphi.std.xstream.serialisers
-
- StringComparableVersionConverter() - Constructor for class com.peterphi.std.xstream.serialisers.StringComparableVersionConverter
-
- stripSignature() - Method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Removes the signature tag from this document if they are present
- sub() - Method in class com.peterphi.std.io.TabLevel
-
- subtract(SampleCount) - Method in class com.peterphi.std.types.SampleCount
-
- subtract(StorageSize) - Method in class com.peterphi.std.types.StorageSize
-
Subtracts a storage size from the current object, using the smallest unit as the resulting StorageSize's unit
- subtract(SampleCount) - Method in class com.peterphi.std.types.Timecode
-
Subtract some samples from this timecode
- subtract(SampleCount) - Method in class com.peterphi.std.types.TimecodeRange
-
Move the range left by the specified number of samples
- subtractPrecise(SampleCount) - Method in class com.peterphi.std.types.SampleCount
-
- success - Variable in class com.peterphi.std.types.BooleanMessage
-
- sum(Timeout...) - Static method in class com.peterphi.std.threading.Timeout
-
Adds together all the supplied timeouts
- symlink(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
- TabLevel - Class in com.peterphi.std.io
-
A class for keeping track of indentation levels; allows indentation using spaces or tabs
- TabLevel() - Constructor for class com.peterphi.std.io.TabLevel
-
- TabLevel(boolean) - Constructor for class com.peterphi.std.io.TabLevel
-
- TabLevel(int) - Constructor for class com.peterphi.std.io.TabLevel
-
- TabLevel(int, boolean) - Constructor for class com.peterphi.std.io.TabLevel
-
- TABSIZE_IN_SPACES - Static variable in class com.peterphi.std.io.TabLevel
-
If using spaces mode, the number of space characters to use for a single tab (defaults to 4)
- tail(List<T>) - Static method in class com.peterphi.std.util.ListUtility
-
Returns a sublist containing all the items in the list after the first
- TEN_SECONDS - Static variable in class com.peterphi.std.threading.Timeout
-
Ten seconds
- THIRTY_SECONDS - Static variable in class com.peterphi.std.threading.Timeout
-
Thirty seconds
- Ticker - Class in com.peterphi.std.util
-
Keeps track of how long it has been since a given timestamp (by default, when the instance was created)
This is mainly designed for testing timing
- Ticker() - Constructor for class com.peterphi.std.util.Ticker
-
- Ticker(Date) - Constructor for class com.peterphi.std.util.Ticker
-
- Ticker(Calendar) - Constructor for class com.peterphi.std.util.Ticker
-
- Ticker(long) - Constructor for class com.peterphi.std.util.Ticker
-
- Timebase - Class in com.peterphi.std.types
-
Describes a timebase, expressed as a rational number.
- Timebase(int, int) - Constructor for class com.peterphi.std.types.Timebase
-
- Timecode - Class in com.peterphi.std.types
-
Represents a timecode, dd:hh:mm:ss:ff - where ff may be an arbitrary length
Timecodes containing days are not well supported.
- TimecodeBuilder - Class in com.peterphi.std.types
-
Constructs Timecode instances
- TimecodeBuilder() - Constructor for class com.peterphi.std.types.TimecodeBuilder
-
- TimecodeComparator - Class in com.peterphi.std.types
-
Compares Timecodes in order of how much time they represent
This means that 00:00:00:02@25 is greater than 00:00:00:1920@48kHz
- TimecodeComparator() - Constructor for class com.peterphi.std.types.TimecodeComparator
-
- TimecodeRange - Class in com.peterphi.std.types
-
Represents a range between two non-null timecodes
- TimecodeRange(Timecode, Timecode) - Constructor for class com.peterphi.std.types.TimecodeRange
-
- TimecodeRange(Timecode, SampleCount) - Constructor for class com.peterphi.std.types.TimecodeRange
-
- Timeout - Class in com.peterphi.std.threading
-
Represents an immutable Timeout (ie.
- Timeout(Duration) - Constructor for class com.peterphi.std.threading.Timeout
-
- Timeout(long) - Constructor for class com.peterphi.std.threading.Timeout
-
Constructs a deadline using a given period of time
- Timeout(long, TimeUnit) - Constructor for class com.peterphi.std.threading.Timeout
-
Constructs a deadline using a given period of time
- toBits(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
-
- toBits(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
-
- toBytes(KeyPair) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toBytes(long) - Method in enum com.peterphi.std.types.StorageUnit
-
- toBytes(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
-
- toBytes(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
-
- toCertificateList(InputStream) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toComparableString() - Method in class com.peterphi.std.types.Version
-
- toDuration() - Method in class com.peterphi.std.threading.Timeout
-
- toEncodedString() - Method in class com.peterphi.std.types.Timebase
-
Return the encoded string representation of this Timebase
N.B.
- toEncodedString() - Method in class com.peterphi.std.types.Timecode
-
Returns the timecode in the Encoded Timecode format for this library.
- toFfmpegString() - Method in class com.peterphi.std.types.SampleCount
-
Returns the sample count in FFmpeg's time-based duration format.
- toFfmpegString() - Method in class com.peterphi.std.types.Timecode
-
Returns the timecode in FFmpeg format.
- toFile(KeyPair, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toFile(PublicKey, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toFile(PrivateKey, File) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toHex(byte...) - Static method in class com.peterphi.std.util.HexHelper
-
Encodes a series of bytes into a hexidecimal string (potentially with leading zeroes) with no separators between each
source byte
- toHex(char, byte...) - Static method in class com.peterphi.std.util.HexHelper
-
Encodes a series of bytes into a hexidecimal string with each source byte (represented in the output as a 2 digit
hexidecimal pair) separated by separator
- toKeyPair(File) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
Takes a PEM-encoded non-password-protected PKCS8 key-containing file and returns the KeyPair within.
- toKeyPair(File, char[]) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
Takes a PEM-encoded PKCS8 key-containing file and returns the KeyPair within.
- toKeyPair(byte[]) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
Takes a PEM-encoded non-password-protected PKCS8 key-containing Reader and returns the KeyPair within.
- toKeyPair(InputStream) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
Takes a PEM-encoded non-password-protected PKCS8 key-containing InputStream and returns the KeyPair within.
- toKeyPair(InputStream, char[]) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
Takes a PEM-encoded PKCS8 key-containing InputStream and returns the KeyPair within.
- toOffset(Timecode) - Method in class com.peterphi.std.types.TimecodeRange
-
Constructs a new TimecodeRange where the values are expressed as offsets from reference.
- toPlainString() - Method in class com.peterphi.std.types.StorageSize
-
Return a String version of this size (e.g.
- toPlainString(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Return a String version of this size (e.g.
- toProperties() - Method in class com.peterphi.std.io.PropertyFile
-
Converts the name/value pairs stored in this PropertyFile to the Java Properties propertyfile type
- toRootFirst(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
Take a chain and return a (Read-only) chain with the root certificate as the first entry
- toRootLast(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
-
Take a chain and return a (Read-only) chain with the root certificate as the last entry
- toShortString() - Method in class com.peterphi.std.types.StorageSize
-
Return a short ISO String version of this size (e.g.
- toShortString(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
-
Return a short ISO String version of this size using the provided unit (e.g.
- toSMPTEString() - Method in class com.peterphi.std.types.Timecode
-
Return a SMPTE string of the format, dropping the days component.
- toSMPTEString(boolean) - Method in class com.peterphi.std.types.Timecode
-
Return a SMPTE-style string of the format [-][dd:]hh:mm:ss:ff (or [-][dd:]hh:mm:ss;ff for
drop-frame
timecode)
- toStream(KeyPair, OutputStream) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- toString() - Method in class com.peterphi.std.crypto.keystore.Keystore
-
- toString() - Method in class com.peterphi.std.crypto.signing.XMLDocumentSigner
-
Produces an XML String representation of the document
- toString(boolean, Set<ChmodBit>) - Static method in enum com.peterphi.std.io.ChmodBit
-
- toString(Set<ChmodBit>, Set<ChmodBit>) - Static method in enum com.peterphi.std.io.ChmodBit
-
- toString() - Method in class com.peterphi.std.io.TabLevel
-
- toString() - Method in class com.peterphi.std.threading.Deadline
-
- toString() - Method in class com.peterphi.std.threading.RunnableCallableFuture
-
- toString() - Method in class com.peterphi.std.threading.Timeout
-
- toString() - Method in class com.peterphi.std.types.BooleanMessage
-
- toString() - Method in class com.peterphi.std.types.Both
-
- toString() - Method in class com.peterphi.std.types.Either
-
- toString() - Method in class com.peterphi.std.types.Id
-
- toString() - Method in class com.peterphi.std.types.InetSubnet
-
Emits this subnet in CIDR notation using the prefix (eg.
- toString() - Method in class com.peterphi.std.types.SampleCount
-
Encode the SampleCount as samples@[str_timebase|nom[:denom]] (e.g.
- toString() - Method in class com.peterphi.std.types.StorageSize
-
- toString(long) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString(long, boolean) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString(BigInteger, boolean) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString(BigDecimal, boolean) - Method in enum com.peterphi.std.types.StorageUnit
-
- toString() - Method in class com.peterphi.std.types.Timebase
-
- toString() - Method in class com.peterphi.std.types.Timecode
-
Returns the timecode as a String, formatted as either:
hh:mm:ss:ff for non-dropframe timecode (where ff is of arbitrary length)
hh:mm:ss;ff for dropframe timecode (where ff is of arbitrary length)
- toString() - Method in class com.peterphi.std.types.TimecodeBuilder
-
- toString() - Method in class com.peterphi.std.types.TimecodeRange
-
- toString() - Method in class com.peterphi.std.types.Version
-
- toString() - Method in class com.peterphi.std.util.Ticker
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.Inet4AddressConverter
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.Inet6AddressConverter
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.InetAddressConverter
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.MultiOSFileConverter
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.StringComparableVersionConverter
-
- toString(Object) - Method in class com.peterphi.std.xstream.serialisers.URIConverter
-
- touch(File) - Static method in class com.peterphi.std.io.FileHelper
-
Creates/updates a file with the modify date set to now
- toVidispineString() - Method in class com.peterphi.std.types.SampleCount
-
Deprecated.
- toVidispineString() - Method in class com.peterphi.std.types.Timecode
-
Deprecated.
use getSampleCount().toEncodedString();
- toWriter(KeyPair, Writer) - Static method in class com.peterphi.std.crypto.keystore.PKCS8Util
-
- TRUE - Static variable in class com.peterphi.std.types.BooleanMessage
-
- trySymlink(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
- type - Variable in class com.peterphi.std.crypto.keystore.Keystore
-
- typeOf(XStream, String) - Static method in class com.peterphi.std.xstream.XStreamHelper
-
Helper method to allow easy testing of the type of a serialised type.