java.lang.Object
com.aoapps.security.SecurityStreamables
Functions for streaming Security-related objects.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HashedKey
Reads aHashedKey
.static HashedPassword
Reads aHashedPassword
.static Identifier
Reads anIdentifier
.static HashedKey
Reads a possibly-null
HashedKey
.static HashedPassword
Reads a possibly-null
HashedPassword
.static Identifier
Reads a possibly-null
Identifier
.static SmallIdentifier
Reads a possibly-null
Identifier
.static SmallIdentifier
Reads aSmallIdentifier
.static void
writeHashedKey
(HashedKey hashedKey, DataOutputStream out) Writes aHashedKey
.static void
writeHashedPassword
(HashedPassword hashedPassword, DataOutputStream out) Writes aHashedPassword
.static void
writeIdentifier
(Identifier identifier, DataOutputStream out) Writes anIdentifier
.static void
writeNullHashedKey
(HashedKey hashedKey, DataOutputStream out) Writes a possibly-null
HashedKey
.static void
writeNullHashedPassword
(HashedPassword hashedPassword, DataOutputStream out) Writes a possibly-null
HashedPassword
.static void
writeNullIdentifier
(Identifier identifier, DataOutputStream out) Writes a possibly-null
Identifier
.static void
writeNullSmallIdentifier
(SmallIdentifier identifier, DataOutputStream out) Writes a possibly-null
SmallIdentifier
.static void
writeSmallIdentifier
(SmallIdentifier identifier, DataOutputStream out) Writes aSmallIdentifier
.
-
Method Details
-
readHashedKey
Reads aHashedKey
.- Throws:
IOException
-
readNullHashedKey
Reads a possibly-null
HashedKey
.- Throws:
IOException
-
readHashedPassword
Reads aHashedPassword
.- Throws:
IOException
-
readNullHashedPassword
Reads a possibly-null
HashedPassword
.- Throws:
IOException
-
readIdentifier
Reads anIdentifier
.- Throws:
IOException
-
readNullIdentifier
Reads a possibly-null
Identifier
.- Throws:
IOException
-
readSmallIdentifier
Reads aSmallIdentifier
.- Throws:
IOException
-
readNullSmallIdentifier
Reads a possibly-null
Identifier
.- Throws:
IOException
-
writeHashedKey
Writes aHashedKey
.- Throws:
IOException
-
writeNullHashedKey
Writes a possibly-null
HashedKey
.- Throws:
IOException
-
writeHashedPassword
public static void writeHashedPassword(HashedPassword hashedPassword, DataOutputStream out) throws IOException Writes aHashedPassword
.- Throws:
IOException
-
writeNullHashedPassword
public static void writeNullHashedPassword(HashedPassword hashedPassword, DataOutputStream out) throws IOException Writes a possibly-null
HashedPassword
.- Throws:
IOException
-
writeIdentifier
Writes anIdentifier
.- Throws:
IOException
-
writeNullIdentifier
public static void writeNullIdentifier(Identifier identifier, DataOutputStream out) throws IOException Writes a possibly-null
Identifier
.- Throws:
IOException
-
writeSmallIdentifier
public static void writeSmallIdentifier(SmallIdentifier identifier, DataOutputStream out) throws IOException Writes aSmallIdentifier
.- Throws:
IOException
-
writeNullSmallIdentifier
public static void writeNullSmallIdentifier(SmallIdentifier identifier, DataOutputStream out) throws IOException Writes a possibly-null
SmallIdentifier
.- Throws:
IOException
-