Class PuttyKeyReader
- java.lang.Object
-
- org.apache.sshd.common.config.keys.loader.putty.PuttyKeyReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PuttyKeyReader extends Object implements Closeable
Helper class forPutty
key files decoders- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description PuttyKeyReader(InputStream s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
read(int maxAllowed)
BigInteger
readInt()
String
readString()
String
readString(Charset cs)
void
skip()
-
-
-
Constructor Detail
-
PuttyKeyReader
public PuttyKeyReader(InputStream s)
-
-
Method Detail
-
skip
public void skip() throws IOException
- Throws:
IOException
-
readString
public String readString() throws IOException
- Throws:
IOException
-
readString
public String readString(Charset cs) throws IOException
- Throws:
IOException
-
readInt
public BigInteger readInt() throws IOException
- Throws:
IOException
-
read
public byte[] read(int maxAllowed) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-